Hi all,
Been trying the Pipwerks js SCORM wrapper (many thanks for the great work with it!). It works great with all editions and version i have tried. But my problem is when trying to retro-fit a non SCORM iframe base HTML course with making basic scorm setter and getters like status, and location/suspend_data (actually a JSON obj/string).
I have an index.html page that is getting launched in the LMS. From that page i have a iframe which includes the course. The index.html has all the SCORM methods and all hrefs has target=_parent meaning so any user navigation happens in the iframe.
If i would like to communicate with the LMS upon some events, like passed tests, i need to call the top frame and its method from a child iframe. So far so good. BUT the problem:
1) top.methodxx is not going to be top when launch in a LMS which use its own iframe(s) when embedding the course and i have no clue where the actual path is going to be (om all LMS). One can assume i could switch and not going from top but doing something like parent.methodxx but the course seems to build up various framesets and iframes making even that path invalid!!
Would it be possible to embeed the index.html iframe into all pages in the course? Would that keep the connection persistent or would scorm.init be needed on every page thus making several db requests ?
hHe root couse of this problem is ofcourse that i am unable to understand why the iframe path changes. It works partially, going forward in the course but once going back to the overview page and into a new lesson a new framesets seems to have been build upon what was aleady there so the parent ref get more like parent.parent or any other path.
Any ideas? kinda of hard to explain without any examples i know.
Thanks.