# SiteCashZone Object The SiteCashZone object represents a zone. Members Table The following table lists the members provided by the SiteCashZone object.
Members
Collections | Description
Patterns | Contains the list of URL patterns.
Properties | Description
ChargeMode | Contains the charge mode.
CheckFrames | Whether to check frames for this zone.
DefaultZone | Whether this is a default zone.
FreeWhileZeroBalance | Whether this zone is for free while balance is zero.
Multiplier | Multiplier on the normal price.
OverridesAlways | Whether this zone overrides others.
PricePerSecond | Price per second.
StartPage | Whether this is the startpage zone.
ZoneName | Name of this zone.
Methods | Description
AddPattern | Adds a pattern to the Patterns collection.
AddZone | Add this zone to the zone list.
DeletePattern | Deletes a pattern from the Patterns collection.
DeleteZone | Deletes this zone from the zone list.
SetStringTableZoneName | Sets a new zone name.
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