the role of the variable strQuestionFinished.

24 views
Skip to first unread message

Pascal C. (scalpa)

unread,
Mar 29, 2024, 11:24:21 AM3/29/24
to hotpotatoesusers
hello

Why doesn't the variable (var strQuestionFinished = ' Question completed, move on to the next one!  ';) appear as soon as the question is finished, but only if a button is clicked again ? (look at here : As a result you can see here : https://scalpa.info/histoire/prehistoire/jquiz.php?numero_exo=1&titre=La%20Pr%C3%A9histoire )
It seems to me that it would make more sense to tell the student as soon as he has completed the question that he or she can move on to the next one.
No?
Happy Easter !

Agnès S.

unread,
Mar 30, 2024, 5:18:19 AM3/30/24
to hotpotatoesusers
Salut Pascal,

I'm not sure it would be great to encourage the student to move on to
the next question as soon as he has completed the question. The
possibility to click on the correct answer is there to enable students
to read the useful comment of the correct answer.
Unless you're using a different string:
var strQuestionFinished = ' Question completed. Click on the correct
answer and read the feedback, then move on to the next one! ';

But if you think it's a useful modification to do, why not.
Reading your questions and remarks, I'm quite sure you have a good
understanding of the code.
So I will let you modify the code by yourself (once a teacher, always a
teacher :) ) with this guide :
Look at the CheckMCAnswer function (in the original jquiz7.js_)
1- Search for the line where strQuestionFinished is added to the feedback
hint : between line 348 and 353
Copy the line.
2- Now search for the part examining the case where the answer is
wrong and leaves only one choice.
hint : between line 374 and 390
Paste the copied line.

Cheers,
Agnès S.

Pascal C. (scalpa)

unread,
Mar 30, 2024, 2:50:30 PM3/30/24
to hotpotatoesusers
Ok I will try to do my lessons. 😉

Pascal C. (scalpa)

unread,
Apr 1, 2024, 3:40:10 AM4/1/24
to hotpotatoesusers
Thanks to Agnes guideline I did it :  Quiz sur la Préhistoire n°1 (scalpa.info) with a touch of bootstrap for the modal behavior.
happy easter !

Reply all
Reply to author
Forward
0 new messages