Are IFRAMES still a necessity for tracking SCORM SCO

When creating a SCORM solution from html and javascript where LMS tracking is required, do you still need to contain all the pages in an IFRAME or use other approaches? What difficulties arise when working in IFRAME when trying to create responsive pages?

+3
source share
3 answers

There is no need to use IFRAMES or OBJECTS to host your SCORM content. The API is just Javascript, and as long as all of this is included in the page, everything will work (SCORM compliance requirements basically require you to look at your own frame, then any parent frames, then any parent window) .. .

Having said that - any platform that you use should allow you to have content right there, and the easiest way to put it in some kind of default frame / window.

+3
source

As other posters note, a technical framework has never been required, but it is by far the easiest and most reliable way to ensure that the SCORM API remains accessible when moving between multiple pages.

If you do not use an iframe (supporting the API connection in the parent frame) and the user goes to the second page of your course, he will break the API connection and the course will no longer be able to communicate with the LMS.

The parent frame handles the LMS connection, while the child frame contains the contents of the course. A child frame (usually an iframe) can be maximized to fit the entire viewport, making the parent frame invisible and letting the child frame feel / behave like one HTML page.

RE: Adaptive layout, iframe is not an obstacle to creating flexible layouts. We do this all the time. Set the iframe to 100% width / height of the parent frame (overflow: hidden on the parent frame, overflow: automatically on the child frame so that the scroll bars appear as desired). For now, any responsive code you use in the iframe HTML file should work just as if it were NOT in the iframe. For example, if you use a media query for a stack of elements when the viewing area is small (for example, a tablet or phone), the multimedia query should work just fine. SCORM does not affect CSS, and the iframe has little effect on your CSS / design if the controls are good.

iframes are a large part of modern websites and are part of the HTML5 specification; iframe support is very reliable in all browsers and devices. Do not let this scare you.

+7
source

This answer suggests that this question means: "Do I need to use iframes in a complete solution, including LMS and content?"

Remember that SCORM is now a fairly old specification, so it has not been developed with the modern world in mind. SCORM uses the JavaScript API and must have a parent-child relationship between the LMS window and the content. This means that you have a choice:

  • Pop-ups that are blocked by default in many browsers.
  • Frames that are "deprecated" and are now longer supported in HTML5.
  • Iframeter, which, as you mentioned, can cause problems for response. See this stack overflow question for some suggestions.

SCORM's successor, the Tin Can API uses HTTP requests instead of the JavaScript API. With Tin Can, you can launch content in a new window, in the same window, on another device, or as you like. Pop-ups and frames are not required.

If the question: “Should I use iframes in my content?”, The answer is no.

+1
source

All Articles