| | |
|
|
|
disable alt+leftArrow key for Coursebuilder test pages. |
| message from Tony Johnson on 23 Jul 2004 |
Can anyone help me with some javascript that will disable the alt+leftarrow
keys so the user cannot go back through a series of test questions (mastery
test).
thanks,
Tony
|
| darrel replied to Tony Johnson on 23 Jul 2004 |
Can anyone help me with some javascript that will disable the alt+leftarrow
You don't want to try and control this on the client side. You want to
instead control this on the server side. So, upon submission of each
question, set some variable on the server side. I'd suggest something like
'questionCount'.
For each questoin answered, questionCount = current Question Number.
Then, on every single question page, as it loads, check to see if
questionCount > current QuestionNumber. If it is, then redirect to the
current question.
-Darrel
|
|
Archived message: disable alt+leftArrow key for Coursebuilder test pages. (Macromedia Dreamweaver)