Results 1 to 3 of 3

Thread: setTimeout with an alert box

  1. #1
    Join Date
    May 2006

    setTimeout with an alert box

    For a few years we have used setTimeout to open a pop up window after 17 minutes alerting the user that their asp session would expire in 3 minutes. In the pop up, we had a countdown so they could see how much time was left. Unfortunately since this was a page initiated pop up, we've been seeing it's effectiveness dwindle lately due to built in pop up blockers. The only other way I can think of to let the user know their session is about to expire without using javascript to redirect them to another page is to just use an alert prompt. But, once you set the text on an alert, you can't update it through setTimeout, can you? Redirecting the user on our site won't work because they could be in the middle of filling out a form or something and if they get taken away from the form, hitting back doesn't always repopulate the form with what they had entered. Does anyone have any ideas on alternatives? Thanks.

  2. #2
    Join Date
    May 2003
    Between Baltimore and DC
    Look at what I have done here, serverside code is easy, should have no trouble doing it with asp.


    Tech Author [Ajax In Action, JavaScript: Visual Blueprint] | twitter | linkedin | http://www.pascarello.com

  3. #3
    Join Date
    May 2006
    Looks good. Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center