gabrieldoty / simplify-scorm

Scorm 1.2 Javascript API
MIT License
230 stars 77 forks source link

Line 8 window.simplifyScorm is undefined error #42

Closed ectomorph21 closed 2 years ago

ectomorph21 commented 2 years ago

Hi Gabriel, First; thank you for this page. I couldn't find much information out there for open source LMS functionality. I am using the adapt_learning authoring tool to build my scorm1.2 zip files. Working in Django, I cannot seem to get the launch part down of the code required to open a new tab or iframe. The error I keep getting is below. I'll also include how I've coded it in my Django html template simplescorm_error . Here is a snippet of my code:

` START

` I'm not a super JS developer, but I'm assuming the issue rest somewhere in me not initializing the window.simplifyScorm variable. Any help you can offer is greatly appreciated.
ectomorph21 commented 2 years ago

Never mind. Thank you @fabmesto . I was able to use the link provided in your original issue and study your js to find a solution that works. Now onto the next challenge, getting it to tie in with my MySQL backend for persistent data.