Highlighted

Captivate export. Js error

New Here ,
Oct 02, 2017

Copy link to clipboard

Copied

Hello

I'am trying to play a captivate export. But when i load the index_scorm.html i have this error in the js console.

Uncaught TypeError: Cannot read property 'charAt' of undefined

    at cp.QuizState.readNumber (CPM.js:1320)

    at cp.QuizState.readString (CPM.js:1322)

    at cp.PlaybackController.restoreObjectsFromState (CPM.js:1398)

    at Function.cp.resumeValuesFromDataChunk (CPM.js:1315)

    at cp.PlaybackController.RestoreQuizState (CPM.js:1439)

    at Function.cp.NewQuizLibraryInit (CPM.js:1014)

    at Function.cp.CPPreInit (CPM.js:1022)

    at Function.cp.ContinueCPInit (CPM.js:2192)

    at LoadContent (CPM.js:1314)

    at InitializeExecuted (scormdriver.js:1879)

the module it's not play on a LMS. I have my own wrapper to get scorm data.

Somebody did have this error ?

Views

668

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Captivate export. Js error

New Here ,
Oct 02, 2017

Copy link to clipboard

Copied

Hello

I'am trying to play a captivate export. But when i load the index_scorm.html i have this error in the js console.

Uncaught TypeError: Cannot read property 'charAt' of undefined

    at cp.QuizState.readNumber (CPM.js:1320)

    at cp.QuizState.readString (CPM.js:1322)

    at cp.PlaybackController.restoreObjectsFromState (CPM.js:1398)

    at Function.cp.resumeValuesFromDataChunk (CPM.js:1315)

    at cp.PlaybackController.RestoreQuizState (CPM.js:1439)

    at Function.cp.NewQuizLibraryInit (CPM.js:1014)

    at Function.cp.CPPreInit (CPM.js:1022)

    at Function.cp.ContinueCPInit (CPM.js:2192)

    at LoadContent (CPM.js:1314)

    at InitializeExecuted (scormdriver.js:1879)

the module it's not play on a LMS. I have my own wrapper to get scorm data.

Somebody did have this error ?

Views

669

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Oct 02, 2017

Copy link to clipboard

Copied

Upload the SCORM zip file to SCORM Cloud and test whether you get the same issue there.  If it does work fine, then the issue is not with the Captivate file but must be either with your web server or your own JS code.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Oct 02, 2017

Copy link to clipboard

Copied

I test on Scorm Cloud like you said it is working.

But the think that i don't understand it i test the same wrapper on another Captivate Module and i don't have the pb.

For the moment the js wrapper look like :

var API = new MyApi();

    function MyApi() {

    this.LMSInitialize = function() {

console.log('LMSInitialize');

};

this.LMSGetValue = function() {

};

this.LMSGetLastError = function() {

cp.

};

this.LMSGetErrorString = function() {

};

this.LMSGetDiagnostic  = function() {

}

this.LMSSetValue = function(k, v) {

alert(k)

}

    };

I set an alert in LMSSetValue and i see the first key is cmi.core.exit and the value is suspend i don't know if it is normal

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Apr 02, 2019

Copy link to clipboard

Copied

Did you ever figure it out?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
May 28, 2020

Copy link to clipboard

Copied

Did you resolve it? and how? Thanks!

 
 
 
 
 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
Captivate User Guide
New Group