Web Development

Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!

General discussion

Locked

On-Line Examination

By safu_tai ·
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

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

On-Line Examination

by Lo In reply to On-Line Examination

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.

Collapse -

On-Line Examination

by safu_tai In reply to On-Line Examination

The question was auto-closed by TechRepublic

Collapse -

On-Line Examination

by Jay Eckles In reply to On-Line Examination

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.

Collapse -

On-Line Examination

by safu_tai In reply to On-Line Examination

The question was auto-closed by TechRepublic

Collapse -

On-Line Examination

by safu_tai In reply to On-Line Examination

This question was auto closed due to inactivity

Related Discussions

Related Forums