Forum Discussion
ScottDellinger
8 years agoCommunity Member
How to access xAPI/Tin Can LMS variables in JavaScript
When Storyline 360 publishes a SCORM 1.2 or 2004 package, an entire library of SCORM JavaScript functions are created and can be used inside Storyline (for instance: SCORM_CallLMSGetValue("cmi.core....
Nandhakumar_S
8 years agoCommunity Member
You can use this code for failed version.
var player = GetPlayer();
var iascore = { raw: player.GetVar("FinalPercent"),min:0,max:100 };
var iatc = new TinCan({url: window.location.href});
var stmt = { verb: "failed", inProgress: false, result: { } };
stmt.result.success = false;
stmt.result.score = iascore;
iatc.sendStatement(stmt);
- rosycolelli6 years agoCommunity Member
Hi, This code doesn't work anymore :(