• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Alert Box problem in javascript

 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic