Forum Discussion
ToddHaynes-40dc
7 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...
JoeFrancis
7 months agoCommunity Member
You can use the JS Function CommitData(); located in Storyline's API.js file, by calling lmsAPI.CommitData(); in your JavaScript.
If your LMS doesn't recognize that, you can try using SCORM_CommitData(); located in the SCORMFunctions.js file, by calling lmsAPI.SCORM_CommitData(); in your JavaScript.
Or, you can try using SCORM2004_CommitData(); located in the SCORM2004Functions.js file, by calling lmsAPI.SCORM2004_CommitData(); in your JavaScript.