Forum Discussion
AdamTrosper
8 years agoCommunity Member
lmsAPI Functionality in HTML5 Output
Hey all,
I've been searching through the forums and haven't been able to find anything solid. I'm using Storyline 360, outputting to both HTML5 and Flash to cover my bases, since the audience doe...
AdamTrosper
8 years agoCommunity Member
In the meantime, you should be able to use the function that I posted earlier in this thread to access lmsAPI correctly. So somewhere at the top of your code, add the following:
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);
If it doesn't work past that point, I'm not sure what the fix would be. I had to do a lot of workarounds with the combination between SL360 specifically and HTML5 that used to work fine in SL2.