If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Navigation Button/Event manager

Evening everyone,

I'm building a browser based multiple choice based test - what I want is for the questions in the test to be randomized on load- what I also want is that, if they have not selected an answer for a question, they cannot navigate to the next question.

I can get the questions to shuffle without the navigation prevention and I can do the navigation prevention to work perfectly, but only if shuffling is disabled or if the question happens to be in same order as it is in the array. The function does work with shuffling, but only if by mere chance, the order in which the questions were shuffled is identical to the order of the questions in the array.

Attached is the full exercise. The original authors of the code commented out the navigation handler... I wonder if they had issues as well.

I would really appreciate anyone's advice or help. Thank you in advance,
Spence.

Evening everyone,

Posted this originally in the wrong forum I think, but here is a copy.
I'm building a browser based multiple choice based test - what I want is for the questions in the test to be randomized on load- what I also want is that, if they have not selected an answer for a question, they cannot navigate to the next question.

I can get the questions to shuffle without the navigation prevention and I can do the navigation prevention to work perfectly, but only if shuffling is disabled or if the question happens to be in same order as it is in the array. The function does work with shuffling, but only if by mere chance, the order in which the questions were shuffled is identical to the order of the questions in the array.