Including <script>-tag in inline_html
Hey all,
I need help with some inline_html code of mine. I use it to set up a questionnaire online. And by now almost everything is working totally fine. I first set the questionnaire up in OS by itself and am now integrating it in the larger experiment I plan to put up. While everything worked fine in the isolated OS environment, now that the questionnaire is a new sequence at the end of my old experiment, I face a problem with <script>-tags in the inline_html.
I wrote some JavaScript <script>-tag inside the HTML that displays a text fields for participants to specify their answers when a specific answer in the previous dropdown question is chosen. Funnily enough, the <script>-tag works perfectly for a latter HTML item, where it is called in the exact same logic and same HTML structure.
If you like, I'd happily share my HTML code, though I think it would make this first question unnecessarily long.
My general question is therefore, can anyone of you tell me if/what there is to mind when using <script>-tags in inline_html inside OS?
Thanks a lot,
Leo
Comments
Hi @lt_kn_char ,
Yes, please share the HTML code. (There is no general principle that comes to mind.)
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hey @sebastiaan ,
Thanks for your fast offering for help! I found a tiny typo in my html-code which caused the error! It's solved by now. :)