HI Robin,
If you can put the exercise somewhere we can see it, we can probably help.
Cheers,
Martin
On 2023-11-11 09:42, Robin Reeves wrote:
> Hi again Martin,
>
> I had another look at the Zip file you sent and saw that I hadn't read
> the Instruction file!
>
> However I have now made a "Shuffle" folder and copied the jcloze6.js_
> into it.
> I have reopened JCloze with my exercise and then set the source file
> location to be my "Shuffle" folder.
> I then made the web page and again the gaps are working but not the line
> shuffling.
>
> Having looked at the new web page in Notepad I can't see any mention of
> the lines in your MDH_Custom lines for the custom code for shuffling. A
> mystery?
>
> Robin
> ------------------------------------------------------------------------
> *From:* Robin Reeves <
rob...@hotmail.co.uk>
> *Sent:* 11 November 2023 17:01
> *To:* Martin Holmes <
mho...@halfbakedsoftware.com>
> *Subject:* Re: [hotpotatoesusers] JCloze - am I dreaming?
> Hi Martin,
>
> I'm using HP JCloze Version 7 Release 3.0 Build 0.
>
> I put the web page through the validator and it came up with 13
> "Trailing slash on void elements has no effect and behaves badly with
> unquoted attribute values." The first 5 errors were on lines 3 to 7 and
> were things like "|*registered to Robin Reeves."/>"*| then the remaining
> 8 were the same error message and were for things like |*id="Gap5"
> onfocus="TrackFocus(5)" onblur="LeaveGap()" class="GapBox" size="9"/>*|
> *
> *
> *I removed all the trailing /s causing the error messages, then saved
> the file with a new name. When I opened the web page the gaps are there,
> I can type in the answers and [Check] works correctly but if I refresh
> the page the lines don't shuffle.*
> *
> *
> *I've looked at the code and there is function Shuffle(InArray){ between
> lines 834 and 855.*
> *
> *
> *I can't share a link but I have attached the web page (without the /
> problems). Is that useful or would the .jcl be better?*
> *
> *
> *Thanks for your help.*
> *Regards,*
> *Robin*
> ------------------------------------------------------------------------
> *From:* Martin Holmes <
mho...@halfbakedsoftware.com>
> *Sent:* 10 November 2023 16:15
> *To:* Robin Reeves <
rob...@hotmail.co.uk>
> *Subject:* Re: [hotpotatoesusers] JCloze - am I dreaming?
> Hi there,
>
> Are you using HotPot 6 or HotPot 7?
>
> Have you validated the HTML file using the W3C validator service to make
> sure the HTML is correct?
>
> <
https://validator.w3.org/ <
https://validator.w3.org/>>
>
> Can you share a link to the exercise so we can see it?
>
> Cheers,
> Martin
>
> On 2023-11-10 08:00, Robin Reeves wrote:
>> Hi again Martin.
>>
>> I've downloaded the jcloze_shuffle.zip and extracted it to a folder
>> called JCloze_Shuffle. It contains shuffle.jcl, shuffle.htm and jcloze6.js_
>>
>> I decided to make a subfolder called Source and put another copy of
>> jcloze6.js_ in it.
>>
>> I have tried your shuffle.htm and every time I refresh it, the order of
>> the questions changes, so that's fine.
>>
>> I then took my own file which had 10 questions which I had numbered and
>> inserted the
>> <ol id="ShuffleQuestions">
>> <li> ...... </li>
>> on each line of my ten questions, then
>> </ol>
>> as in your shuffle.jcl file
>>
>> In the Configuration settings under Other your had a tick for 'Use
>> dropdown list...' and for 'Include wordlist..' so I did the same for my
>> .jcl file
>>
>> I then created the web page using the original source for hp7 and the
>> gap filling had worked and the questions were numbered but they didn't
>> change their order after a refresh.
>> I then tried setting the Source File location to be Source within my
>> JCloze_Shuffle folder and created the web page and again the gap filling
>> works but not the random order after a refresh.
>>
>> As I had put the jcoze6.js_ into the Source folder I made sure I also
>> had a copy in the same folder as my .jcl file as I know that when I use
>> Agnès mini audio play I need to have her player4.js in the same folder
>> as the .jmt file, but after creating a new web page it still doesn't
>> refresh the order.
>>
>> Am I missing something please?
>>
>> Regards,
>> Robin
>> ------------------------------------------------------------------------
>> *From:* Martin Holmes <
mho...@halfbakedsoftware.com>
>> *Sent:* 09 November 2023 22:33
>> *To:* Robin Reeves <
rob...@hotmail.co.uk>
>> *Subject:* Re: [hotpotatoesusers] JCloze - am I dreaming?
>> The example comes from HotPot 6, but I think adding the same code should
>> work in HotPot 7.
>>
>> Cheers,
>> Martin
>>
>> On 2023-11-09 11:26, Robin Reeves wrote:
>>> Brilliant. Thank you.
>>> Robin
>>>
>>> Sent from Outlook for Android <
https://aka.ms/AAb9ysg <
https://aka.ms/AAb9ysg <
https://aka.ms/AAb9ysg>>>
>>> ------------------------------------------------------------------------
>>> *From:* Martin Holmes <
mho...@halfbakedsoftware.com>
>>> *Sent:* Thursday, November 9, 2023 6:56:48 PM
>>> *To:* Robin Reeves <
rob...@hotmail.co.uk>
>>> *Subject:* Re: [hotpotatoesusers] JCloze - am I dreaming?
>>> You're absolutely right -- I wrote this many many years ago:
>>>
>>> <
https://hotpot.uvic.ca/howto/shuffle.htm
>>> <
https://hotpot.uvic.ca/howto/shuffle.htm
>> <
https://hotpot.uvic.ca/howto/shuffle.htm
> <
https://hotpot.uvic.ca/howto/shuffle.htm>>>>
>>>
>>> Cheers,
>>> Martin
>>>
>>> On 2023-11-09 10:26, Robin Reeves wrote:
>>>> Thanks Martin. I was just trying to get the best of both worlds with
>>>> gaps and random order and I thought I had read about it somewhere but
>>>> obviously I was wrong. As I said, I must have been dreaming! I'll have
>>>> another think about your JQuiz idea.
>>>>
>>>> Robin
>>>>
>>>> Sent from Outlook for Android <
https://aka.ms/AAb9ysg <
https://aka.ms/AAb9ysg <
https://aka.ms/AAb9ysg <
https://aka.ms/AAb9ysg>>>>
>>>> ------------------------------------------------------------------------
>>>> *From:* Martin Holmes <
mho...@halfbakedsoftware.com>
>>>> *Sent:* Thursday, November 9, 2023 5:34:31 PM
>>>> *To:* Robin Reeves <
rob...@hotmail.co.uk>
>>>> *Subject:* Re: [hotpotatoesusers] JCloze - am I dreaming?
>>>> JCloze is really supposed to be about coherent texts, not individual
>>>> questions. It would be possible to write some JavaScript to do what you
>>>> want, but I don't think it would be in the spirit of what JCloze is, really.
>>>>
>>>> Cheers,
>>>> Martin
>>>>
>>>> On 2023-11-09 08:40, Robin Reeves wrote:
>>>>> Thanks Martin. I've tried it in JQuiz and see what you mean about the
>>>>> random order but I want the users to have to fill in the gaps so I'm not
>>>>> sure it will work in JQuiz.
>>>>>
>>>>> Regards,
>>>>> Robin
>>>>> ------------------------------------------------------------------------
>>>>> *From:* 'Martin Holmes' via hotpotatoesusers
>>>>> <
hotpotat...@googlegroups.com>
>>>>> *Sent:* 09 November 2023 16:07
>>>>> *To:*
hotpotat...@googlegroups.com <
hotpotat...@googlegroups.com>
>>>>> *Subject:* Re: [hotpotatoesusers] JCloze - am I dreaming?
>>>>> <mailto:
hotpotatoesuse...@googlegroups.com
>>>> <mailto:
hotpotatoesuse...@googlegroups.com
>>> <mailto:
hotpotatoesuse...@googlegroups.com
>> <mailto:
hotpotatoesuse...@googlegroups.com
>>>>>>
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com> <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com>> <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com>>> <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com>>>> <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com>>>>> <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/hotpotatoesusers/77b34ce0-7731-4312-9fb3-b58bef7dcd0an%40googlegroups.com?utm_medium=email&utm_source=footer>>>>>>.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "hotpotatoesusers" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to
hotpotatoesuse...@googlegroups.com.
>>>>> To view this discussion on the web, visit
>>>>>
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com> <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com>> <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com>>> <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com>>>> <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com <
https://groups.google.com/d/msgid/hotpotatoesusers/04d2de9d-22f6-4e96-917e-d92986e246aa%40halfbakedsoftware.com>>>>>.