OnProgress Event
Fires when the progress of the download changes.
Syntax
SiteKiosk.Network.Downloads.Item(index).OnProgress = handler
|
Remarks
The object that caused the event can be referenced in the event function using "this".
Examples
The following example shows the progress of the download.
<div id="id_progr">0 bytes</div>
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteKiosk.Network.Downloads.OnNewDownload = OnNewDownload;
function OnNewDownload(newdownload)
{
mydownload = newdownload;
mydownload.OnProgress = OnProgress;
}
function OnProgress()
{
id_progr.innerHTML = mydownload.BytesDownloaded + ' bytes';
}
</SCRIPT>
|
Applies to
SiteKiosk v5.5 (and later versions).
Back to top