English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i m designing a on line exam in jsp.a count down timer starts upon exam starting.The maximum time to answer a question is 1 min.but as 2nd question comes upon page submit the timer again starts from the first.so how i solve the problem.

2006-12-27 20:57:48 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

The approach is

If you have 10 questions, that means 10 mins. So the time has nothing to do by itself, it goes with active question. When the question changes, so the clock resets. Creating count down from 59sec to 00sec is easy job. Here you have to use SetInterval or SetTimeout functionality at the client side for showing the time remaining. These function you have to code until they are reached 00 sec and call this function again when the question changes. So the clock begins.

I have just mentioned any overlay of the process, but it can be done without problems. Give a try. You will succeed

Hope this helps

2007-01-03 18:45:19 · answer #1 · answered by Raghavendra Mudugal 3 · 0 0

2 ways immediately spring to mind

1 is to store the time in a local variable and work with that so the page refresh shows the value of the variable

the other is to base the time on the local system time of the user - so store the time that the exam is started and keep displaying the current time minus the stored start time

2006-12-27 21:08:21 · answer #2 · answered by Ivanhoe Fats 6 · 0 0

the ingredient you go with for to do is spoke of as as AJAX with is a clean concept in information superhighway progression the place in basic terms the part of the website is submitted to the server. you will be professional in Javascript and XML to apply this................

2016-10-19 02:06:43 · answer #3 · answered by ? 4 · 0 0

you may visit brainbench website they have same fuctionality there.

2006-12-27 21:10:11 · answer #4 · answered by intrud4r 2 · 0 0

fedest.com, questions and answers