SiteCashZone Object

The SiteCashZone object represents a zone.

Members Table

    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.
    The following example shows the real price per second of the last existing zone in an alert window.

    <SCRIPT TYPE="text/javascript">
    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");
          case 1:
            price = lastZone.PricePerSecond;
            alert("You pay per second: " + price);
          case 2:
            price = lastZone.PricePerSecond;
            alert("You get per second: " + price);
          case 3:
            cprice = SiteKiosk.Plugins("SiteCash").PricePerHour / 60;
            price = cprice * lastZone.Multiplier;
            alert("You pay per second: " + price);
    else alert("There are no zones available.");

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

Back to top