SiteCashZone Object



 
The SiteCashZone object represents a zone.


Members Table

Remarks
    This object is returned by the Item or the CreateZone method. Use the SiteCashZone object to receive information about a zone or to modify it.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
Examples
    The following example shows the real price per second of the last existing zone in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    if (SiteKiosk.Plugins("SiteCash").Zones.Count > 0)
    {
       lastIndex = SiteKiosk.Plugins("SiteCash").Zones.Count;
       lastZone = SiteKiosk.Plugins("SiteCash").Zones.Item(lastIndex);
       switch (lastZone.ChargeMode)
       {
          case 0:
            alert("This zone is for free");
            break;
          case 1:
            price = lastZone.PricePerSecond;
            alert("You pay per second: " + price);
            break;
          case 2:
            price = lastZone.PricePerSecond;
            alert("You get per second: " + price);
            break;
          case 3:
            cprice = SiteKiosk.Plugins("SiteCash").PricePerHour / 60;
            price = cprice * lastZone.Multiplier;
            alert("You pay per second: " + price);
            break;
       }
    }
    else alert("There are no zones available.");
    </SCRIPT>
    

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

Back to top