| Author |
Topic Search Topic Options
|
hamsicik
Newbie
Joined: 16 October 2003
Location: Turkey
Status: Offline
Points: 13
|
Post Options
Thanks(0)
Quote Reply
Topic: How to disable refresh and go back Posted: 13 September 2006 at 2:02pm |
Mates,
I am studying on a web questionnaire and to prevent cheating, I need some knowledge. Is there any way to prevent visitors to go back (if any goes back he must run across a timed out page), and to prevent refreshing the page( if any refreshes he must be redirected to a error page or timed out page).
Thanks in advance
|
 |
Freon22
Groupie
Joined: 04 December 2005
Status: Offline
Points: 42
|
Post Options
Thanks(0)
Quote Reply
Posted: 15 September 2006 at 2:22pm |
I think you are going to need to use a client-side language like javascript.
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 15 September 2006 at 4:26pm |
You might want to look at something like QuizFaber - http://www.lucagalli.net/index.htmlThey have a fairly active support forrum, and I'm sure this problem's been addressed at some point.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
zMaestro
Senior Member
Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 September 2006 at 2:42am |
use ajax....
you won't disable them, but will make refreshing doesn't get the desired action.
|
 |
hamsicik
Newbie
Joined: 16 October 2003
Location: Turkey
Status: Offline
Points: 13
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 September 2006 at 3:24am |
Dear zMaestro,
What is ajax and how to do?
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 September 2006 at 9:28pm |
|
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
zaboss
Senior Member
Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 September 2006 at 6:50am |
|
Why use something so unreliable and not doing with plain and simple ASP? When you load the test page, just write into the database: username, time, testID. Then when loading the page, all you have to do is to check wether the user has done the test or not. If he took the test, you would write a message to him, "Sorry, you are only allowed to take the test once", if not, he will go on with the test. But you have to make sure that you write somewhere in the page to warn him not to refresh the page or use the back button.
Of course, you can just write a cookie, but if he would have them disabled...
|
|
|
 |
hamsicik
Newbie
Joined: 16 October 2003
Location: Turkey
Status: Offline
Points: 13
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 October 2006 at 3:34am |
|
Problem is not to compel people to take the test once only. The main problem is when a person gives a wrong answer at 6th question, he can't go back and correct the answer and go on 7th question. If he tries to go back to question he must come across a timed out page. And he mustn't refresh on a page that contain a hard question to retrieve a simplier question.
|
 |