Posts made by Itamar Tzadok

Hi Tieku,

In the attached zip file you should find the following files:

  • CDATA-example.xml - Your example above in Moodle XML format ready to be uploaded.
  • CDATA-RB-example.xml - Your example above extended with radio buttons in Moodle XML format; before uploading you need to open the file and replace XXXXXXXXXXXXXXXX with a full path to the js file.
  • scritp4rb.js - script for restoring radio buttons values; should be uploaded to somewhere accessible from the course site.
Notice again that with CDATA you do not need to convert HTML chatacters to their code but simply paste the HTML as is.

If javascript is still being removed that might be a matter of system settings because it works in my environment.

See if you can make it work now. Let me know.

Itamar smile
As a javascript exercise similar to the radio-buttons one this should be quite easy. Adding that as a feature to the standard MC, however, may not be that simple.

By the way while experimenting with the radio-buttons I set them up such that one click checks an option and double-click on that option clears it. The question then has two options - true and false - and the default is unanswered which is equivalent to Not Sure. A student can answer a question and then if she isn't sure about the answer she can "cancel" or "reset" her answer and leave the question unanswered without explicitly admitting that she is unsure.