CurDuration Property



 
The CurDuration property contains the remaining/spent surftime (depends on mode).


Syntax

    [long=] Account.CurDuration
    
Possible Values
    Long value that retrieves the duration.

    The property is read only.
Remarks
    The meaning of this property depends on the mode:

    Mode 1 : always 0
    Mode 3 : remaining surftime
    Mode 4 : spent surftime

    Durations are a number of seconds.
Examples
    The following example displays the remaining/spent surftime of the first available account.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    account = SiteCafe.Server.Account.GetAccountByIndex(1);
    alert(account.CurDuration);
    </SCRIPT>
    

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

Back to top