Manually invoke LMSCommit() on slide load with JS?
I'd like to add "save points" to various slides within my course to ensure that learner progress is preserved as best as possible (e.g. guarding against a lost internet connection, failed race condition onwindowclose(), etc).
Similarly, I'd like to add an "exit course" button to each of my slides, and again, I'd like the trigger on this button to do an LMSCommit back to the LMS, and *then* "window.close()" (I always open my courses in their own window).
Is there a way to do what I want? I'm actually not 100% sure if "LMSCommit()" is even the JS command I want--what I want to do is send a "save the current state of the course; whatever that is" command. My assumption is that LMSCommit() is that command.
Any help is appreciated.