Resetting Timer on <meta http-equiv="refresh"

Discussion in 'ASP .Net' started by George Durzi, Apr 28, 2005.

  1. George Durzi

    George Durzi Guest

    I'm using the following tag to refresh my page every 3 minutes.

    <meta http-equiv="refresh" content="180; URL=default.aspx">

    However, it's bound to happen that a user is working on the page, and it
    refreshes, so they lose their work.

    Is there any way to reset the timer when a key is pressed?

    Thanks
     
    George Durzi, Apr 28, 2005
    #1
    1. Advertisements

  2. George Durzi

    Mark Guest

    Have you thought of using JavaScript intead of the Meta Refresh to do the
    time out??
    You could probably set the Page timeout in the onLoad event in the HTML and
    then look for a key stroke and then reset the page timeout..

    http://home.cogeco.ca/~ve3ll/jstutor2.htm#to

    HTH
    Cheers
    Mark

    "George Durzi" <> wrote in message
    news:es$...
    > I'm using the following tag to refresh my page every 3 minutes.
    >
    > <meta http-equiv="refresh" content="180; URL=default.aspx">
    >
    > However, it's bound to happen that a user is working on the page, and it
    > refreshes, so they lose their work.
    >
    > Is there any way to reset the timer when a key is pressed?
    >
    > Thanks
    >
    >
     
    Mark, Apr 28, 2005
    #2
    1. Advertisements

  3. Don't use meta http-equiv="refresh" ..
    Try using refresh Javascript for this and plug in to a KEY PRESSED or
    BUTTON.


    *** Sent via Developersdex http://www.developersdex.com ***
     
    Patrick Olurotimi Ige, Apr 28, 2005
    #3
  4. George Durzi

    George Durzi Guest

    Thanks for the tips guys

    "Patrick Olurotimi Ige" <> wrote in message
    news:...
    > Don't use meta http-equiv="refresh" ..
    > Try using refresh Javascript for this and plug in to a KEY PRESSED or
    > BUTTON.
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
     
    George Durzi, Apr 28, 2005
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Donald Gordon

    UTF-8, LWP and http-equiv meta tags

    Donald Gordon, Feb 25, 2004, in forum: Perl
    Replies:
    0
    Views:
    760
    Donald Gordon
    Feb 25, 2004
  2. =?Utf-8?B?bWc=?=

    META HTTP-EQUIV="Refresh"

    =?Utf-8?B?bWc=?=, Jun 30, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    767
    Teemu Keiski
    Jun 30, 2004
  3. Chumley Walrus
    Replies:
    1
    Views:
    1,171
    Joerg Jooss
    Mar 5, 2005
  4. Replies:
    5
    Views:
    3,630
  5. Titus A Ducksass
    Replies:
    1
    Views:
    6,169
    Sid Ismail
    Aug 1, 2003
  6. Nym Pseudo

    META NAME and META HTTP-EQUIV

    Nym Pseudo, Sep 26, 2003, in forum: HTML
    Replies:
    1
    Views:
    823
    =?iso-8859-1?Q?brucie?=
    Sep 26, 2003
  7. TheKeith
    Replies:
    20
    Views:
    109,303
    Chris Morris
    Oct 29, 2003
  8. Sam
    Replies:
    1
    Views:
    9,497
    Michael Fesser
    Mar 7, 2006
Loading...