Skip to main content
Known Participant
December 15, 2015
Question

Forcing LMSCommit - show erro message

  • December 15, 2015
  • 1 reply
  • 446 views

I have a  module SCORM 1.2 and LMS Syfadis.

When the user began the trainning, unplugged the ethernet cable and turned off wifi. They are no alert for user to inform error to connect with LMS.


My question is: Shouldn't captivate show errors message when it can't communicate with the LMS??


How to Forcing LMSCommit ?

This topic has been closed for replies.

1 reply

TLCMediaDesign
Inspiring
December 15, 2015

Those errors may be in the console.

If the API is not found you the user will get an error. All errors after that are usually in the console.

aDebibiAuthor
Known Participant
December 16, 2015

Around line 1032 of scormdriver.js :

function WriteToDebug(strInfo){if(blnDebug){var dtm=new Date();var strLine;strLine=aryDebug.length+”:”+dtm.toString()+” – “+strInfo;aryDebug[aryDebug.length]=strLine;if(winDebug&&!winDebug.closed){winDebug.document.write(strLine+”<br>\n
return;}

I changed WriteToDebug function to show error in the consol :

function WriteToDebug(strInfo){var dtm=new Date();var strLine;strLine=aryDebug.length+”:”+dtm.toString()+” – “+strInfo;aryDebug[aryDebug.length]=strLine; console.log(strLine); return;}


I have this in the console.

But when unplugged the ethernet cable and turned off wifi, I have erro only in the last slide and strResult = false


and when I came back to the other slide strResult = true and I have no error in the console.


Is this normal ? I have to invoke manyally LMSCommit() on slide ?

Thanks for you return.

TLCMediaDesign
Inspiring
December 16, 2015

I'm not sure why you are trying to manually commit something.

And the console you are showing is from the LMS files, not Captivate.