So, I am trying to update my very old javascript Pop-up Calendar script to work with modules... I have read through the documentation many times, and have it pretty close to working. The only problem is that clicking on any of the calendar cells needs to call the f_tcalUpdate function, but that happens at the global scope where it doesn't know anything about my script.
Can anyone help me get that function to work?
here are two versions of the script: the first one is the one that I am trying to fix
https://www.rieperts.com/games/forum/PopupCalendar.c3p
this second one is the pre-module version that works fine in the R225 stable release
https://www.rieperts.com/games/forum/PopupCalendar_225.c3p
Note: if you run either of these in preview, the console will show error 404 messages on the calendar images, but it will still work fine. if you export the project then the images show up without the errors.
they way the script is supposed to work is that when you click on the textInput field, a calendar will pop up under it to allow you to select a date. at the top there are buttons for Prev Year, Prev Month, Next Month, Next Year (but those buttons don't show in preview mode although they still work).