Creating countdown timer in ASP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enggars
    New Member
    • Mar 2007
    • 1

    Creating countdown timer in ASP

    Hello.
    Is there any way to create a countdown timer in ASP pages?
    I am working on some quiz project, and it needs time limitation.
    I tried to use the javascript as the time limitation.
    But the javascript always starts each time the page is being refreshed.
    So the time limitation will not work.
    Is there any suggestion from you guys all the ASP masters?
    Thanks.
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Originally posted by enggars
    Hello.
    Is there any way to create a countdown timer in ASP pages?
    I am working on some quiz project, and it needs time limitation.
    I tried to use the javascript as the time limitation.
    But the javascript always starts each time the page is being refreshed.
    So the time limitation will not work.
    Is there any suggestion from you guys all the ASP masters?
    Thanks.
    Use session-level variable when the page is created:
    Code:
    if session("startQuestion1") <> "" then
       'user has already started this question once
       'deny access
    else
       session("startQuestion1") = now
    end if
    Does that work for you?

    Jared

    Comment

    Working...