Forum Discussion
ToddHaynes-40dc
8 months agoCommunity Member
Javascript code for LMSCommit() SCORM 2004
I would like to submit a LMSCommit() command using JavaScript. Can anyone help me with the syntax? Which of the options for //submit data to LMS is best practice for SCORM 2004 version 4?
// conne...
JohnCooper-be3c
8 months agoCommunity Member
Hi Todd - Yes it's just a reassurance. We recently wrote a course where we took learner text input and used SetValue to insert the text in the cmi.comments_from_learner.n.comment SCORM Data Array. But the limit is 4000 characters per comment so, in case the learner typed more than 4000 characters we split the input into two entries. Since it was possible that the script could get interrupted having done part one and not part two we used the successful Commit to signal both parts had been written and the comment index (n) was properly updated - otherwise we could back the transaction out - it's just 'belt and braces'...