Ticket ID: 21581
|
Creation Date: 4/27/2015 11:40 AM
|
Product: SiteKiosk Classic Windows
|
Attachment: -
|
TicketType: Support Request
|
Version: 7.5.295
|
Language: English
|
Views: 28517
|
Last Modification Date: 5/26/2015 12:15 PM
|
Platform:
|
|
Level: Closed
|
|
|
Support Request: Script doesn't start at SiteKiosk start
I created a script to check at the activation of the screen saver if the user interacts within 10 seconds. If yes, nothing happens, otherwise the user is logged out and a redirect to Google should happen. I configured the script to run at SiteKiosk startup, unfortunately that doesn't seem to happen.
Here is the script (logout.js):
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteKiosk.ScreenSaver.OnScreenSaverBegin = OnScreenSaverBegin;
function OnScreenSaverBegin()
{
evtid = SiteKiosk.Scheduler.AddDelayedEvent(10000, logoutIfInactive);
}
function logoutIfInactive(eventID)
{
if(SiteKiosk.ScreenSaver.Active == true){
SiteKiosk.Logout();
window.location = "
http://www.google.com";
}
</SCRIPT>
The path of the script (E:\) was allowed to run JavaScripts and also the Access to E:\ is allowed in the file manager.
Could you please tell me, what is wrong? I'm pretty shure, that the script doesn't starts at SiteKiosk startup. I also replaced the logout.js with a script that just opens an alert-box, which also dindn't work. I also removed the script-tags in the js file and that doesn't helps too.
Thank you very much for support!