AddPeriodicEvent Method
The AddPeriodicEvent method calls a script function every time the specified period expired.
Syntax
[evtid=] SiteKiosk.Scheduler.AddPeriodicEvent(delay, func)
|
Parameters
delay |
Long value that specifies the delay. |
func |
Function that is called after the period expired. |
Return Value
Returns a Long value that contains the event ID.
Remarks
The func parameter can be a JavaScript or VBScript function. When this function is called, the event ID is transmitted as a parameter.
Examples
The following example calls a JavaScript function every 5 seconds.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
evtid = SiteKiosk.Scheduler.AddPeriodicEvent(5000, myfunction);
function myfunction(eventID)
{
alert("5 seconds have passed");
}
</SCRIPT>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top