dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: setTimeout with an alert box

  1. #1
    Join Date
    May 2006
    Posts
    16

    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
    Location
    Between Baltimore and DC
    Posts
    3,579
    Look at what I have done here, serverside code is easy, should have no trouble doing it with asp.

    http://radio.javaranch.com/pascarell...246930301.html

    Eric

  3. #3
    Join Date
    May 2006
    Posts
    16
    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



Recent Articles