Results 1 to 6 of 6

Thread: how to generate a countdown timer for 20mins even if the user refresh the browser

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    88

    how to generate a countdown timer for 20mins even if the user refresh the browser

    how to generate a countdown timer for 20mins even if the user refresh the browser. This is for a online test so that even the user refresh the broswer, the test remaining time is still there

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I'd probably say set a cookie when the user starts the test, and check against that.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    88
    how?

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by hongge
    how?
    You'd have to user a server side language such as PHP, CGI, or ASP. Last I knew (and it has been awhile), JavaScript has no cookie capabilities, even though they are both client side.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    javascript does have cookie abilities

    http://javascript.internet.com/cookies/
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by punkpie_uk
    javascript does have cookie abilities

    http://javascript.internet.com/cookies/
    I suppose I'm going to have to re-educate myself, then.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width