Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to disable refresh and go back
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to disable refresh and go back

 Post Reply Post Reply Page  12>
Author
hamsicik View Drop Down
Newbie
Newbie
Avatar

Joined: 16 October 2003
Location: Turkey
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote hamsicik Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Freon22 View Drop Down
Groupie
Groupie


Joined: 04 December 2005
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Freon22 Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2006 at 2:22pm
I think you are going to need to use a client-side language like javascript.
 
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: 15 September 2006 at 4:26pm
You might want to look at something like QuizFaber - http://www.lucagalli.net/index.html

They 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.
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2006 at 2:42am
use ajax....
you won't disable them, but will make refreshing doesn't get the desired action.
Back to Top
hamsicik View Drop Down
Newbie
Newbie
Avatar

Joined: 16 October 2003
Location: Turkey
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote hamsicik Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2006 at 3:24am

Dear zMaestro,

What is ajax and how to do?
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: 29 September 2006 at 9:28pm

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: 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...
Cristian Banu
Soft 4 web
Back to Top
hamsicik View Drop Down
Newbie
Newbie
Avatar

Joined: 16 October 2003
Location: Turkey
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote hamsicik Quote  Post ReplyReply Direct Link To This Post 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.
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.