The results again.

The results again.

by henny jellema -
Number of replies: 3
Beste Gordon,

Joost has just uploaded the newest version but I’m still puzzled by why sometimes results are not saved.

For instance with this exercise:

http://moodle.etine.nl/mod/hotpot/view.php?id=410
results are not saved.
It can be that that is because of I modificated the source code with an extra container for a reading text?
Because this one works fine:

http://moodle.etine.nl/mod/hotpot/view.php?id=409

But then this one, a standard Jmatch, no modifications:

http://moodle.etine.nl/mod/hotpot/view.php?id=557

I can think it’s because of the player, but exactly the same exercise, only with a drag-drop output gives results.

http://moodle.etine.nl/mod/hotpot/view.php?id=558
Ra, ra …..?

As always many thanks beforehand for any help.

Hart. Gr. van Henny.
Average of ratings: -
In reply to henny jellema

Re: The results again.

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Hi Henny,

I looked at the quiz called "Dans le magasin.2":
http://moodle.etine.nl/mod/hotpot/view.php?id=410

Great quiz!

Unfortunately, the HotPot module didn't detect that the quiz was a TexToys Sequitur quiz. In fact, it couldn't work out what kind of quiz it was, and that is why it couldn't detect when the quiz finished.

When the quiz starts up, there is some javascript that has a look around and tries to decide what kind of quiz this is. Your quiz has a <DIV> called "MainDiv". As soon as the detection javascript sees that, it thinks this is some kind of Hot Potatoes quiz, and starts looking for other things to work out what kind of Hot Potatoes quiz it is. Of course, it fails sad ... and gives up dead

When you said you added an "extra container for a reading text", did you add a <DIV> that looked like the following:
<div id="MainDiv" class="StdDiv">
This is the <DIV> that is causing the problem. I wonder, did you put it in or did Sequitur put it in?

If you change "id" to something other than "MainDiv", I think the results will be recorded. However, if this <DIV> was inserted by Sequitur, then the quiz detection code needs to be changed.

best regards
Gordon
In reply to Gordon Bateson

Re: The results again.

by henny jellema -
Beste Gordon,

Before I try to work out your advise I answer this question:


I wonder, did you put it in or did Sequitur put it in?

I got this modification from Bernard Dyer. He is active at the Hot Potatoes forum and always shares his' great ideas generously with everybody else.

This is his website:

http://www.frenchrevision.co.uk/

Hartelijke groeten van Henny.



In reply to henny jellema

Re: The results again.

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Hi Henny,
Sorry about my long answers wink

Here's the short answer to the problem with your Sequitur quiz:

change this: <div id="MainDiv" class="StdDiv">
to this: <div id="Henny_MainDiv" class="StdDiv">

I have made the above modfication to the quiz for you and it works now smile

Thanks for the link to Bernard's site. Its a great resource to know about!

Hartelijke groeten van Gordon