NIPO ODIN Version 5.17

Previous Topic

Next Topic

Using JavaScript in an Odintemplate File

If required, you may use JavaScript inside an odintemplate file to allow running custom scripts on a question. However, you are strongly advised to always place in-line JavaScript between comment tags:

Using in-line JavaScript in an odintemplate file

<!--
...[Your JavaScript scripts]
-->

Since odintemplate files are processed by the NIPO HTML Generator, the brackets < and > are interpreted as start and end of HTML tags. Since these brackets may also be used in expressions, they may break up the template processing. Placing in-line JavaScript in comments avoids this.

See Also