Question

Following is the code I am using this time to run a simple SCORM package(with a index.html its working). I tried sequencing example from HERE package run - Simple Remediation SCORM 2004 3rd Edition but this package do not have any index.html file, so how do i check the entry point for running it in the below code ?

I believe I need to check something in imsmanifest.xml but unable to locate(googled a lot but unable to crack).

Let me know how to find an entry file for a SCORM2004 package to run?

<!DOCTYPE html>
<html>
    <head>
        <title>Play SCORM Package - </title>
    </head>
    <body>
        This is going to play a course in an inframe.
        <div id="course-show">
        <iframe src="SCORM_2004_APIWrapper.js" name="API_1484_11" width="0" height="0"></iframe>
        <iframe src="course/sample_SCORM2004/index.html" width="800" height="600"></iframe>
        </div>
    </body>
</html>

APIWrapper downloaded from - http://www.adlnet.gov/adl-releases-scorm-version-1-2-and-scorm-2004-api-wrapper-files

Was it helpful?

Solution

It works like this: the imsmanifest.xml lists items and their resources, like this:

   <item identifier="playing_item" identifierref="playing_resource">...</item>
   <resource identifier="playing_resource" href="shared/launchpage.html?content=playing" adlcp:scormType="sco" type="webcontent">...</resource>

You have to find the first item item (sorry :), then use its identifierref attribute to find the resource for that item, then use the href attribute for that resource to launch. So in your case you have to run shared/launchpage.html, not index.html.

Also, I'm not sure if your code will work, because you are putting SCORM_2004_APIWrapper.js and index.html (or launchpage.html) into different iframes, so it's likely they won't be able to communicate.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top