How to invoke LMSCommit() on a button press?

How to invoke LMSCommit() on a button press?

by fox mccloud -
Number of replies: 0

At the bottom of mod/scorm/player.php I have written some JS code which handles a click event when the continue button in the SCORM package is pressed. At this point I want to commit the data to the database. What do I need to call? Is it simply LMSCOmmit()? How is this called?

I know we have an auto-commit setting which commit every 60 seconds but this isn't robust enough because of how our clients are testing the software. 

Average of ratings: -