Forum Discussion
There is an known issue with LMSApi on some LMS's. As they all implement Scorm somewhat different it might be needed to refer different to the LMSApi on a given LMS.
On ScormCloud that is not happening because the LMSApi is accessible in a direct way. On some LMS's thats not the case. CrossKnowledge might be one of these.
So i always use this function to prevent that and find the LMSApi./*
On ScormCloud this function is available. On other LMS's this may not be available,
or you might need to target it differently. Thus adding this function for those cases.
*/
function findLMSAPI(win) {
if (win.hasOwnProperty("GetStudentID")) {
return win;
}else if (win.parent == win) {
return null;
}else {
return findLMSAPI(win.parent);
}
}
Adding the fixed Storyline. Do try this one on your LMS.
It looks like that did the trick! :)
It displays "default user" in ScormCloud as well as in my LMS.
Now I just need to know how to add the user's name again.... Sorry, I am JavaScript illiterate.... :)