Results 1 to 3 of 3

Thread: Javascript timer need help

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    33

    Question Javascript timer need help

    hi m trying to display a countdown timer in my online exam project.Now I display one record at a time,containing one question.When the candidate clicks a "next" button I display the next record(next question),I've created the timer which works when the page aint posted back.When the "next" button is clicked the page is posted back n the timer gets reset.How do i prevent tht from happening?

    Else is there any other better way of acheiving the same ?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Javascript timer need help

    Every time the timer ticks, store the value of the timer to a hidden form field. When the next record is loaded, read the value from the hidden form field and set that as your timer's start value.

    Make sense?

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    33

    Re: Javascript timer need help

    Ya sure does makes sense!! Will give it a try

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