Beste Gordon or anybody else.
I have a problem. If here:
http://www.digischool.nl/oefenen/hennyjellema/nederlands/woordenschat/stenvert/blz.16-30/blz.18.01.htm
one gets a litte smiley picture in the feed back.
But in Moodle here:
http://moedermoodle.stoas.nl/mod/hotpot/view.php?id=13500
these pictures in the feedback don’t show up.
Is there a solution?
Gordon this is an other Moodle as I had before. I can make a teachers account for you.
Hart. groeten van Henny.
Hi Henny,
This is why the first one works as expected:
Now, here's why the second one doesn't work as expected:
This is how to fix the second one:
Gordon
This is why the first one works as expected:
- This JQuiz ...
http://www.digischool.nl/oefenen/hennyjellema/nederlands/woordenschat/stenvert/blz.16-30/blz.18.01.htm
- ... contains this relative url for a Javascript file ...
blz.18.01.js - ... which the browser coverts to the following URL ...
http://www.digischool.nl/oefenen/hennyjellema/nederlands/woordenschat/stenvert/blz.16-30/blz.18.01.js - ... which contains the following relative url for an image ...
var CorrectIndicator = '<img src="smiley_clap.gif" width="32" height="32"></img>'; - ... which the browser converts to ...
- ... and that works fine
Now, here's why the second one doesn't work as expected:
- This HotPot ...
http://moedermoodle.stoas.nl/mod/hotpot/view.php?id=13500 - ... contains this absolute url for a Javascript file ...
http://moedermoodle.stoas.nl/file.php/124/stenvert-2/blz.18.01.js - ... which contains the following relative url for an image ...
var CorrectIndicator = '<img src="smiley_clap.gif" width="32" height="32"></img>'; - ... which the browser converts to ...
- ... but there is no image at that url !!
you and I may want the browser to use URL of the JS file as the base url for the image file, but unfortunately the browser uses url of the HotPot file to work out the absolute URL of the image
This is how to fix the second one:
- EITHER: leave the image urls as relative urls but do NOT use an external javascript file
- OR: continue to use an external javascript file, but change the image urls to absolute urls, e.g.
Gordon
Beste Gordon,
Thanks for your help :- )) and using my smileys to clear your explanation!.
Relatieve links is been always my weak point. But I do think I understand your reaction and
I'm going to follow your advise.
Hgv, Henny.
Thanks for your help :- )) and using my smileys to clear your explanation!.
Relatieve links is been always my weak point. But I do think I understand your reaction and
I'm going to follow your advise.
Hgv, Henny.