OnJavascriptReturnValue Event
Fires when a JavaScript returned a value.
Syntax
SiteCafe.Server.Computers.OnJavascriptReturnValue = handler
|
Parameters
value |
String or Long value that contains the value. |
scriptID |
Long value that contains the script ID. |
Remarks
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".
Examples
The following example causes the first computer to execute a javascript file and to send its return value.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
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);
</SCRIPT>
|
Applies to
SiteKiosk v6.2 (and later versions).
Back to top