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...
ToddHaynes-40dc
8 months agoCommunity Member
Thank you: this line worked for me without error (returns "true").
SCORM2004_objAPI.Commit("");
LOL - I assumed this command sends all current course data to LMS, including "session_time". I have not yet confirmed the specific data that Commit() actually sends to the LMS.
Official definition: Indicates to the LMS that all data should be persisted (not required).
Another: The Commit method signals to the LMS that a significant chuck of data has been saved and that it should ensure the data is properly persisted.
So Commit() doesn't actually send course data, only signals to LMS it should consider a chunk of data (SetValue) sent?