Forcing LMSCommit at specific intervals

Mar 28, 2014

Hi all,

We are implementing a simple kiosk "game" at a conference next week, and I need some assistance.

The game is essentially 4 slides... the introduction slide, a slide to gather user details, the game slide (six multiple choice questions) and a results slide, that submits the user details to the LMS and then automatically restarts the course.

We're not keeping the results of the game, but rather keeping the user details. We would like to keep the browser open the entire time and have the game run in a continuous loop.

So, currently the course will submit the user detail information only when the browser is closed. I would ideally like the user information to be submitted to the LMS when the result slide is hit and the course is restarted. 

I've tried various combinations of LMSCommit within a javascript trigger, to no avail. I've read seemingly all threads related to LMSCommit in eLearning Heroes. I just can't seem to make it work. I am using Storyline for the content and Scorm Cloud for the LMS. 

Any assistance is appreciated.

Thanks, Chris

5 Replies
Chris Klein

Thanks for the reply, Ashley.

Yes, I went through that entire thread. I tried various forms of LMSCommit(); calls without success. It does commit all transactions when the browser is closed, however our concern is what may potentially happen if this is running for 8-10 hours and the laptop spontaneously reboots or loses its network connection. We want to minimize the risk of losing transactions.

We're using a Short Answer question. We did consider embedding a web-based form, but it is not seamless and I figured there would be difficulty with submitting the form through a Storyline action and clearing the form out on course restart.

Is it possible to manually call LMSCommit(); via Javascript? If so, are there specific settings I need to use? ie, Flash vs HTML5 or SCORM 1.2 vs 2004? Will it do what I am trying to make it do or is there another call that will manually send the transactions to the LMS (ie, LMSFinish()?

Also, I did find the API.js file which has a function called CommitData(). Is it possible to call those functions from a Javascript trigger?

Thanks again!

Ashley Terwilliger-Pollard

Hi Chris,

Unfortunately I'm not equipped to support Javascript triggers/code - but would hope someone in the forums could assist with that element. 

I do think the web object Google form would work, as the form itself is reset from the web. 

If the network connection may be an issue, you may want to implement a method like this one - more so to let you and your team know that the data connection was missing so that you could reset it. 

This discussion is closed. You can start a new discussion or contact Articulate Support.