Date issues with JS
I am using the JavaScript found on these forums to get the date.
When I run the published output on my PC, it does not show the date.
However when I run the same published files thru an LMS, it shows the date.
Could someone please tell me what I am missing here? Thanks.
3 Replies
You need to upload the training to the web (e.g. your LMS, a server etc.) for the JavaScript to work. Alternatively, if you view the HTML5 output locally (i.e., on your PC) that should also show the date.
Setting up a local web server (for example XAMPP) and publishing inside the default directory (for example C:\XAMPP\htdocs\) would also do the trick, plus it will save you the upload downtime (usually via FTP) when updating your published output.
Alex
Hi, Philip -- Thanks for reaching out with your question, and I see that Matthew and Alexandros have provided some really great answers to your question! Just to expand a bit on what Matthew noted, here is some additional information on our recommendations to be sure to test your published output in the intended environment to ensure full functionality. Hope that helps, and please let us know if you need anything more! :)