Images not loading

Images not loading

by Dave Perry -
Number of replies: 2
Picture of Testers

I've added an <img> tag into the question for a jMatch quiz, and whatever Display settings I use (Output format, Media filter options) the picture won't show. I did a source code search on an attempt and note near the top that a javascript function (PreloadImages in function StartUp) is trying to pre-load the image, but it's not being included in the page HTML anywhere.

Seeing as this <img> embedding into the question (Instruction div) works fine with jQuiz (multiple choice) questions, why does it not work with jMatch? I'm willing to share the file if needs be (the <img> contains the absolute URL to the jpg).

Average of ratings: -
In reply to Dave Perry

Re: Images not loading

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi David,
probably you have already checked this, but could you confirm thet the absolute URL is the right one.

If you are sure that the URL works then, please look again at the source code of the page that Moodle sends to your browser and check that the URL in the "src" attribute for the <img> tag is what you expect.

If you are sure that the URL is correct, and the <img> tag's "src" attribute seems OK, and the quiz is still not working as you expect, then please upload the JMatch to my development server and add it as a HotPot activity, so that we can look at it together.

regards
Gordon

In reply to Gordon Bateson

Re: Images not loading

by Dave Perry -
Picture of Testers

Hi Gordon

Yep the absolute URL was checked and confirmed as OK.
The .jmt file is on that moodle page now.

Thanks,
Dave