SiteKiosk Documentation
One Step Back

AddDispatch Method




The AddDispatch method adds a member to the SiteCash script.


Syntax

    SiteKiosk.Plugins("SiteCash").Script.AddDispatch(newname, dispatch)
    
Parameters
    newnameString that specifies the new name of the added member.
    dispatchDispatch to add.
Return Value
    None.
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 topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -