OnLogoutButtonPressed Event

Fires when the logout button is pressed.


    OnLogoutButtonPressed = handler
    If the defined function of this event returns true, SiteKiosk will not start the standard logout process. If false is returned and the RetransferEnabled property is true, the script device account will be deactivated and SiteKiosk tries to return existing credit using the active devices.

    The object that caused the event can be referenced in the event function using "this".
    The following example shows an alert window when the logout button is pressed and tells SiteKiosk to start the standard logout process and the retransfer process.

    <SCRIPT TYPE="text/javascript">
    sdevice = SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice");
    sdevice.OnLogoutButtonPressed = OnLogoutButtonPressed;
    function OnLogoutButtonPressed()
       return false;

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

Back to top