Balance Property



 
The Balance property contains the current balance of the script device account.


Syntax

    [currency=] SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice").
    Balance
    
Possible Values
    Currency value that retrieves the balance.

    The property is read only.
Remarks
    If the script device account is enabled, its credit is added to the account balance of the SiteCash object.
    Use the CurrencyFormatter object for currency functionality.
Examples
    The following example shows the current script device balance in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    scash = SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice");
    alert(scash.Balance);
    </SCRIPT>
    

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

Back to top