OnExecuteJavascript Event



 
Fires when the server caused the terminal to execute a Javascript.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    OnExecuteJavascript = handler
    
Parameters
    filename String that contains the filename.
    sendRetVal Boolean value that indicates whether the script should send a return value to the server.
    scriptID Long value that contains the script ID.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays the filename when the server caused the terminal to execute a Javascript.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    SiteCafe.OnExecuteJavascript = OnExecuteJavascript;
    function OnExecuteJavascript(filename, sendRetVal, scriptID)
    {
       alert("File: " + filename);
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top