Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP Timer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP Timer

 Post Reply Post Reply Page  <12
Author
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 23 October 2003 at 6:28pm

Does the testee have to get all of the questions at once?

It would be trivial to start a session timer when the first question/group of questions is presented and on each successive page that's presented put "You have x minutes left to complete the exam"


Lead me not into temptation... I know the short cut, follow me.
Back to Top
zaboss View Drop Down
Senior Member
Senior Member


Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaboss Quote  Post ReplyReply Direct Link To This Post Posted: 23 October 2003 at 11:30pm

dpyers, the testee would have all the questions at once. Perhaps I'll split it should there be let's say, more than 25 questions. And indeed, the timer should not start again on each page.

KC, in one of my previous post I have eplained that I think is rather depressing to get the "time's up" message after you fill in the test and submited it. And the problem is that this is a generic program, people could be using it for any kind of tests (psihological, professional, etc.) so some of them would not be failed/passed type. That's why the program only pass the final score to the people that generated the test and they would decide if 85 points means that a testee fails, pass, is a math genius, a suicidal type or a good father!

Cristian Banu
Soft 4 web
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 12:14am

When you serve up the first page, set the javascript timer in the html, and a session timer in global.asa.

The javascript timer can send them to the "times up" page when it expires.

The code that does the corrections, can check the session timer.

Intermediate pages can also check the session timer and update the javascript timer if the two are out of synch (timers using different technologies on different platforms are +- to some degree).

Depending upon the length of the test, you may need to change the session timeout variable in global.asa as most hosts use the default of 20 minutes.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
zaboss View Drop Down
Senior Member
Senior Member


Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaboss Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 12:25am
Or a simpler method. In examiner.asp?quiz=1&uid=28&PageNr=1 the jscript trigger the expiration time from the db and the page woud set a cookie. In the next page, examiner.asp?quiz=1&uid=28&PageNr=2, it would trigger the expiration time from DateDiff("n", TotalExpirationTime, cookie).
Cristian Banu
Soft 4 web
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 12:54am
Touche

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.