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 jsp 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>
subject: examination system : countdown timer ?
countdown timer for Testing engine
Auto-submit <form> to a servlet.
Repainting jPanel in Applet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013