Hello!
First I wish you a happy new year! All the bests!
I am still using Prodigy for experiments purposes, and I encountered a problem while using the view_id "html" and javascript.
My goal is to make people choose an order for videos, and I would have liked to implement a drag and drop option (like "sortable" with jquery) to make the experiment more comfortable and intuitive. I started with testing available snippets of codes, and drag and drop examples I found online didn't work if launched with Prodigy while they worked if the html was opened individually, so I did easier tests.
I did an easy example to check something:
My HTML body contains only a div with the id "mydiv". Then in the Javascript, I only wrote the command:
"document.getElementById("mydiv").innerText = "text"; (it's not in any function)
when I launch Prodigy on local and watch the log I have the following message:
"Uncaught TypeError: document.getElementById(...) is null" meaning that mydiv is null thought it does exists.
My guess is that Javascript is launched before all the page is loaded so it doesn't detect "mydiv", but I wonder why there is such a behaviour.
Thanks in advance for your answer,
Bests,
Estelle