41098

SCORM package is not communicating with LMS

Question:

Even after Initialize, SCORM package is not communicating with the LMS-

Throwing error -

<strong>No SCORM implementation found.</strong>

My Folder structure-

-index.php -player.php -course/SCORM-course (directory) -wrap.js -SCORM_2004_APIWrapper.js

All code -

My index.php code - <a href="http://pastebin.com/e8fcvxep" rel="nofollow">http://pastebin.com/e8fcvxep</a>

My Player.php code - <a href="http://pastebin.com/R0zRaVXJ" rel="nofollow">http://pastebin.com/R0zRaVXJ</a>

My wrap.js code - <a href="http://pastebin.com/Lte4eTKu" rel="nofollow">http://pastebin.com/Lte4eTKu</a>

My SCORM_2004_APIWrapper.js code - <a href="http://pastebin.com/kdQ0JR04" rel="nofollow">http://pastebin.com/kdQ0JR04</a>

I searched and tried everything that I can but still unable to resolve. let me know what else we need to edit to make it working.

Answer1:

Since you're using SCORM 2004, you need to have the API wrapper in a frame named <strong>API_1484_11</strong>. You currently have the API frame called <strong>API</strong> which refers to SCORM 1.2.

For example, in <strong>player.php</strong>, you would change the line:

<frame src="SCORM_2004_APIWrapper.js" name="API" noresize>

to

<frame src="SCORM_2004_APIWrapper.html" name="API_1484_11" noresize>

Where SCORM_2004_APIWrapper.html is a html file that references SCORM_2004_APIWrapper.js.

This is since according to the api discovery agorithm, a frame named "API" refers to SCORM 1.2 not SCORM 2004. The API discovery algorithm loops through the current window and its frames, and the windows opener if applicable looking for an element named "API_1484_11".

A good resource on API discovery algorithms is available from Rustici at: <a href="http://scorm.com/scorm-explained/technical-scorm/run-time/api-discovery-algorithms/" rel="nofollow">http://scorm.com/scorm-explained/technical-scorm/run-time/api-discovery-algorithms/</a>

Recommend

  • wrap all lines that are longer than line length
  • python ordered dict issue
  • Beginner chess rook movement interruption in function [duplicate]
  • How can compile I `.java file` in jsp?
  • java - cookie overried in multi-thread
  • Lucene Search Syntax
  • Html-table scraping and exporting to csv: attribute error
  • How do you write to a specific line of a txt file in C?
  • Clean way to Parse JSON object [duplicate]
  • JavaScript regular expression to validate only path params in URL
  • Raster image on world map in ggplot
  • TimeoutException exception in StackExchange Redis .NET Library
  • Parse URL beautifulsoup
  • Why dynamic power consumption is always zero?
  • Windows Phone 8 Http request with custom header
  • Installing Chef Server on Windows
  • How can I pass complex expression to parametrized active pattern?
  • Stalling at deallocate
  • What is happening when this code calls FUSE like this?
  • Where can I get runkit DLL extensions for PHP 5.3+?
  • How to trigger a KeyPressed event for unit testing in JAVA
  • Unable to run app-client that is accessing an EJB on GlassFish v3
  • What is “PHP-standardized” version number strings?
  • Generating random numbers directly inside a .htaccess file
  • How to create virtual printer with iOS Simulator?
  • HTML5 video only works in IE. The other browsers shows the black screen
  • Do I need to seed any random number generator before using EVP_PKEY_keygen of OpenSSL?
  • Redux Form - Not able to type anything in input
  • MySQL WHERE-condition in procedure ignored
  • Adding custom controls to a full screen movie
  • Traverse Array and Display in markup
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • Acquiring multiple attributes from .xml file in c#
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Turn off referential integrity in Derby? is it possible?
  • How can I remove ASP.NET Designer.cs files?
  • JaxB to read class hierarchy
  • java string with new operator and a literal
  • playing video using jmf