AddPeriodicEvent Method

The AddPeriodicEvent method calls a script function every time the specified period expired.


    [evtid=] SiteKiosk.Scheduler.AddPeriodicEvent(delay, func)
    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.
    The func parameter can be a JavaScript or VBScript function. When this function is called, the event ID is transmitted as a parameter.
    The following example calls a JavaScript function every 5 seconds.

    <SCRIPT TYPE="text/javascript">
    evtid = SiteKiosk.Scheduler.AddPeriodicEvent(5000, myfunction);
    function myfunction(eventID)
       alert("5 seconds have passed");

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top