OnLogoutButtonPressed Event
Fires when the logout button is pressed.
Syntax
SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice").
OnLogoutButtonPressed = handler
|
Remarks
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".
Examples
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">
window.external.InitScriptInterface();
sdevice = SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice");
sdevice.OnLogoutButtonPressed = OnLogoutButtonPressed;
function OnLogoutButtonPressed()
{
alert("Logout");
return false;
}
</SCRIPT>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top