Ticket ID: 21581
|
Date de création: 27/04/2015 11:40
|
Produit: SiteKiosk Classic Windows
|
Annexe: -
|
TicketType d´article: Support Request
|
Version: 7.5.295
|
Langue: Anglais
|
Adressages: 28701
|
Dernière modification: 26/05/2015 12:15
|
Plateforme:
|
|
Niveau: Fermé
|
|
|
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!