|
-
Mar 3rd, 2006, 04:59 AM
#1
Thread Starter
Member
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 ?
-
Mar 3rd, 2006, 09:41 AM
#2
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?
-
Mar 3rd, 2006, 11:47 AM
#3
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|