OnRefresh Event



 
Fires when a window content is refreshed.


Syntax

    SiteKiosk.WindowList.OnRefresh = handler
Parameters
    skwin WindowInfo object that represents the refreshed window.
    flashwin Boolean value that indicates if the task bar is to swap the window color to achieve a flash effect.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example counts all refreshed windows.

    <div id="rf1">Create a new window and change its content.</div>
    <br>
    <div id="rf2">Number of refreshed windows: -</div>
    <div id="rf3">Last window title: -</div>
    <div id="rf4">Last window flash status: -</div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var countrefresh = 0;
    SiteKiosk.WindowList.OnRefresh = OnRefresh;
    function OnRefresh(skwin, flashwin)
    {
       countrefresh++;
       rf2.innerHTML = "Number of refreshed windows: " + countrefresh;
       rf3.innerHTML = "Last window title: " + skwin.ItemText;
       rf4.innerHTML = "Last window flash status: " + flashwin;
    }
    </SCRIPT>
    

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

Back to top