OnJavascriptReturnValue Event

Fires when a JavaScript returned a value.


    SiteCafe.Server.Computers.OnJavascriptReturnValue = handler
    value String or Long value that contains the value.
    scriptID Long value that contains the script ID.
    Use the ExecuteJavascript method to cause a computer to execute a javascript file.

    The object that caused the event can be referenced in the event function using "this".
    The following example causes the first computer to execute a javascript file and to send its return value.

    <SCRIPT TYPE="text/javascript">
    function OnJSReturnValue(value, scriptID)
       alert("Script: " + scriptID + ", return value: " + value);
    SiteCafe.Server.Computers.OnJavascriptReturnValue = OnJSReturnValue;
    computer = SiteCafe.Server.Computers.GetComputerByIndex(1);
    computer.ExecuteJavascript("c:/example.js", true);

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

Back to top