Sending SCORM Completion on a Button Press in SL3

Hello Everyone,

I am trying to pass a SCORM course completion on a button press, on a results slide. For some reason, the below JS code does not send the completion status to SCORM Cloud. Any ideas why?

var player = GetPlayer();

function findLMSAPI(win) {

 if (win.hasOwnProperty("GetStudentID")) return win;

 else if (win.parent == win) return null;

 else return findLMSAPI(win.parent);

}

 var lmsAPI = findLMSAPI(this);

 SetStatus("Passed");  

1 Reply