AddDispatch Method
The AddDispatch method adds a member to the SiteCash script.
Syntax
SiteKiosk.Plugins("SiteCash").Script.AddDispatch(newname, dispatch)
|
Parameters
newname |
String that specifies the new name of the added member. |
dispatch |
Dispatch to add. |
Return Value
Remarks
Script.Start() function must be called after Script.AddDispatch() has been used.
Examples
The following example adds a property to the SiteCash script.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
var newobj = new Object();
newobj.newprop = "New property";
SiteKiosk.Plugins("SiteCash").Script.AddDispatch("newobj", newobj);
SiteKiosk.Plugins("SiteCash").Script.Start("c:/scriptfile.js");
alert(SiteKiosk.Plugins("SiteCash").Script.Dispatch.newobj.newprop);
</SCRIPT>
|
Applies to
SiteKiosk v6.0 (and later versions).
Back to top