4

LMS での追跡が必要な html および javascript から SCORM ソリューションを構築する場合、IFRAME にすべてのページを含める必要がありますか、それとも他のアプローチが採用されていますか? レスポンシブ ページを作成しようとするときに、IFRAME 内での作業にはどのような問題がありますか?

4

3 に答える 3

3

SCORM コンテンツを含めるために IFRAMES または OBJECTS を使用する必要はありません。API は単純な Javascript であり、すべてがページに含まれている限り、すべてが機能します (SCORM 準拠要件では、基本的に、自分のフレーム、次に親フレーム、次に親ウィンドウを調べる必要があります)...

つまり、使用しているプラ​​ットフォームが何であれ、コンテンツを直接そこに配置できるようにする必要があり、ほとんどの場合、デフォルトで何らかのフレーム/ウィンドウに配置するだけです。

于 2015-07-03T09:55:31.503 に答える
1

This answer assumes the question means: 'Do iframes have to be used in the complete solution including the LMS and content?'

Remember that SCORM is now quite an old specification so wasn't designed with the modern world in mind. SCORM uses a JavaScript API and needs to have a parent-child relationship between the LMS window and the content. That means you have a choice of:

  • Pop-ups, which are blocked by default in many browsers.
  • Framesets, which are 'obsolete' and now longer supported in HTML5.
  • Iframes, which as you mentioned can cause problems for responsivity. See this stack overflow question for some suggestions.

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

If the question is 'Do I have to use iframes in my content?', the answer is no.

于 2015-07-03T09:40:14.333 に答える