Download Object
The Download object controls a single download.
Members Table
The following table lists the members provided by the Download object.
Remarks
This object is available through the Item method, the CreateDownload method, the OnNewDownload event and the OnRemoveDownload event.
Use the Download object to control a single download or to receive information about it.
Note that the path of a file using SiteKiosk objects must be allowed in the
SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
if it is not a browser skin file.
Examples
The following example shows the name of the file every time a new download started.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteKiosk.Network.Downloads.OnNewDownload = OnNewDownload;
function OnNewDownload(newdownload)
{
alert(newdownload.DownloadURL + " will be downloaded");
}
</SCRIPT>
|
Applies to
SiteKiosk v5.5 (and later versions).
Back to top