Discussion Locked

On-Line Examination

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i have one project of on-line examination
but i developed it .it's work fine .but there
is some problem in project.
there 10 question for user and user get 1 marks for 1 question and every question has 3 minutes . but in this project user can able to going back to previous question. so i have a problem for back button can i disabled this back button??. please reply

5 replies

by lo

Not a Java programmer so ...

I would guess you can disable the back button, but ... If not you can keep a global counter (or a question array), when the subject accesses the question, add 1 to the counter (or mark the corresponding entry in the arry). On access to the question, check to see if the counter is >= to the current question (indicates seen before) or if the entry in the array is set). Disallow access if yes for either.

by jay eckles

In general, you cannot disable features of browsers like "Back" - even if you have a window with no tool bar or menu bar, most browsers have hotkey combinations like Alt+Leftarrow. Specifically in IE there is nothing you can do to disable the back feature.

What you should do is check the HTTP Referrer when a page is loaded. If the referrer is a page that should come AFTER the current page, then you know a user has used the "Back" feature and you can handle it.

This discussion is closed to new replies.