OnBalanceChange Event
Fires when the balance of the script device acount changes.
Syntax
SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice").
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 script device balance.
<div id="crdt">0</div>
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
sdevice = SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice");
sdevice.OnBalanceChange = OnBalanceChange;
function OnBalanceChange(curbalance)
{
crdt.innerHTML = curbalance;
}
</SCRIPT>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top