I have a database activity for a staff leave management system. The JS is not working on Moodle 3.3+. I tested the code on my chrome browser using .js file with save script as pasted in Moodle template with a dummy table generated, and it works fine.
When I look at Chrome dev tools I get the following:
______________________________________________________________________________________________
Failed to load resource: the server responded with a status of 404 (not found)
codemirror.css Failed to load resource: the server responded with a status of 404 (not found)
fullscreen.css Failed to load resource: the server responded with a status of 404 (not found)
js.php:15 Uncaught TypeError: Cannot read property 'getElementsByTagName' of null
at calc_totals (js.php:15)
at js.php:63
jquery.dataTables.css Failed to load resource: the server responded with a status of 404 (not found)
fullscreen.css Failed to load resource: the server responded with a status of 404 (not found)
codemirror.css Failed to load resource: the server responded with a status of 404 (not found)
__________________________________________________________________________________________
The js.php looks like my code. The other errors seem due to configurable Reports plugin (that is throwing errors in Moodle 3.3).
My preset is attached.
Thanks for any light on this. Madhu Avasarala