Course Completion

I have used custom code for  course completion in LMS and its working fine in most iof the lms but my bad luck the same  is not working in client lms iPad.

 below is the code i used for completion

var player=GetPlayer();

var customScore = player.GetVar("customScorePoints");

customScore = Math.round(customScore);

function SetCustomCourseCompletion(){

     parent.SCORM_SetScore(customScore, 100, 80);

if(customScore>=80){

parent.SCORM_SetPassed();

}

else{

}

parent.SCORM_CommitData();

}

SetCustomCourseCompletion();

can someone tell me why its not working in some LMS:-(

Be the first to reply