HCJ-UI :: Additional files :: img :: scr :: picture not shown

HCJ-UI :: Additional files :: img :: scr :: picture not shown

by Christian Gasde -
Number of replies: 2

Hi Richard,

this time I have a question regarding to the HCJ-UI  plug-in:

I tried the following:

1.) adding an image-file to the "Additional files" area

2.) trying to insert the picture via:
  <img src="amo-coaching-selbstbewusstsein-staerken-selbstbestimmung.jpg" alt="This is a nice picture! :-)" width="100" height="100">

3. ) but the image is not shown

Is there a general flaw in my logic or do I simply have to use another path-assignment in step 2.) ?!?

Thank you for your response!

Best Regards from Coburg
Chris

Coderunner plugin picture not shown

In reply to Christian Gasde

Re: HCJ-UI :: Additional files :: img :: scr :: picture not shown

by Richard Lobb -
The files you add to the Support Files section of the question authoring form are sent to the Jobe server and loaded into the working directory when the question is Checked for marking purposes. But interaction with the UI prior to submission is all taking place in the student's browser. So the src attribute of the <img> tag has to be a URL of a resource that's accessible to the browser at that time. This means it needs to be an internet resource, not a file.

For example (after tweaking of the frame height and number of rows for the question answer to make room for the image):

Screen show of html question

In reply to Richard Lobb

Re: HCJ-UI :: Additional files :: img :: scr :: picture not shown

by Christian Gasde -
Hi Richard,

so I will use some internal webspace to store the pictures to have an internet resource for the scr-attribute of the tag.
Thankx again for your help!!!

Best Regards from Coburg
Christian