DeleteZone Method



 
The DeleteZone method deletes the zone from the Payment Module zone list.


Syntax

    SiteCashZone.DeleteZone()
    
Return Value
    None.
Remarks
    None.
Examples
    The following example adds and deletes a new zone.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    myZone = SiteKiosk.Plugins("SiteCash").CreateZone();
    myZone.ChargeMode = 1;
    myZone.CheckFrames = true;
    myZone.DefaultZone = false;
    myZone.FreeWhileZeroBalance = false;
    myZone.OverridesAlways = false;
    myZone.PricePerSecond = 0.001;
    myZone.StartPage = false;
    myZone.ZoneName = "My new zone";
    myZone.AddPattern("http://www.mysite.com/*");
    myZone.AddZone();
    myZone.DeleteZone();
    </SCRIPT>
    

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

Back to top