FileDownloader.Enabled Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Switch that indicates whether the Download button is enabled or disabled.

Syntax

Initialize

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
var fd = new FileDownloaderWriter("FileDownloaderID", 610, 500);
//...other params...
fd.addParam("Enabled", "true");
//...other params...
fd.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getFileDownloader("FileDownloaderID").setEnabled(value);
value = getFileDownloader("FileDownloaderID").getEnabled();

Property Value

A boolean value (true or false). If true, the user can click the Download button and download files. If false, the button is disabled.

Default value is "true".

Remarks

Use this property if you need to disable the Download button for some reason, for example, if the file list is not yet created or if the user does not have enough permissions to download files.

See Also

Reference