Picture in the feedback doesn't show up.

Picture in the feedback doesn't show up.

by henny jellema -
Number of replies: 2
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.



Average of ratings: -
In reply to henny jellema

Re: Picture in the feedback doesn't show up.

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

This is why the first one works as expected:


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 !! smiley_crying_2
    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.

hope that helps!
Gordon
In reply to Gordon Bateson

Re: Picture in the feedback doesn't show up.

by henny jellema -
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.