Custom Save button - Commit data
Hi there
I know LMS can handle this but I would like to be able to do it myself.
This is my goal.
To have a button that saves and closes the HTML5 module. I am publishing SCORM 2004.
When the user opens the module again, s/he must land on the same slide s/he saved the module.
This is what I have been trying, I attach this JS script to a button
SCORM2004_CallGetValue("cmi.suspend_data");
SCORM2004_CallCommit();
SCORM2004_CallTerminate();
I know something is missing so I would appreciate any thoughts.
Do I need to Set the suspend data or something?
Thanks in advance
B
PS How do I do so that I SetValue of the suspend data when revisiting the module?