A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
examination system : countdown timer ?
Joined: Dec 23, 2003
Oct 04, 2005 10:17:00
I am building a examination system. But I don't know how to implement a timer / clock.
When user is taking an exam, he should have a countdown timer. How to do this ? how to remember the time between
pages ? seperate thread to countdown time in server side ?
Thanks in advance .
Joined: Jun 30, 2004
Oct 05, 2005 02:37:00
How about this...
When the user starts the exam create a Date object representing when the exam ends, then save it in the session.
For every request (inc the first) create another Date object representing the current time and save it in the session
clock that shows the time difference between the current and the exam end date objects - thats your time left on the exam.
[ October 05, 2005: Message edited by: Daniel Rhoades ]
Drinking more tea is the key...
Joined: Sep 11, 2005
Oct 05, 2005 02:53:00
keep smilin :: sravan<br /><a href="http://sravanpens.blogspot.com" target="_blank" rel="nofollow">I scribble here</a>
I agree. Here's the link:
subject: examination system : countdown timer ?
Repainting jPanel in Applet
Auto-submit <form> to a servlet.
countdown timer for Testing engine
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015