• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alert Box problem in javascript

 
Yogendra Joshi
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers ,

I have a huge application in which there are alerts everywhere on displaying actions of user defined by the application. This application was designed quite some years back and the problem statement is ,

We have a logout code in one of our htm files in which we have written that if the user screen does not do anything for 10 minutes , it should auomatically logout that particular user and bring the user back to login screen. This works like a dream.. ! But the problem is , if the user has an alert message on the screen , then the logout event itself doesnt get fired. I want to know what are the possible solutions through which i can close all the windows and then fire the logout event.

I searched on google quite a lot of time but did not yield any affirmative replies nor forums who can provide solution and so Ranch is the place now i have turned up to and i am sure i would not get the same plain old answer saying this cannot be done.

Please help me as this is a pain both for me and the application users.

Thanks in advance.
Yogendra N Joshi.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing you can do about that. The windowed alerts halt the execution of JavaScript and there is no way to close them after a set period of time. The server should be doing the timeout anyway so the next user action should result in a login screen.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic