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 ?
:confused:
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?
Re: Javascript timer need help
Ya sure does makes sense!! Will give it a try