OnBalanceChange Event



 
Fires when the credit changes.


Syntax

    SiteKiosk.Plugins("SiteCash").ZoneDispatch.OnBalanceChange = handler
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example shows the current credit.

    <div id="crdt">0</div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Plugins("SiteCash").ZoneDispatch.OnBalanceChange = OnBalCh;
    function OnBalCh()
    {
       zDisp = SiteKiosk.Plugins("SiteCash").ZoneDispatch;
       crdt.innerHTML = zDisp.CurrentBalance;
    }
    </SCRIPT>
    

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

Back to top