Struggling with java/Captivate/new LMS
Hi,
For years, we've used a small piece of java at the end of our software simulations produced in Captivate. When the user clicks this, they advance to the next page in the main e-Learning course (developed in Composica):
setTimeout(function() {
Navigation.next();
}, 100);
We've recently moved to Articulate Storyline 2 for e-Learning development, and the old code doesn't work. From searching online, I found this discussion https://community.articulate.com/discussions/articulate-storyline/web-object-how-to-advance
I created the variable within Storyline, and the trigger. In Captivate (7.0.1) I am now using the code:
var player=parent.GetPlayer();
var currentTime = new Date();
var uniqueTime=currentTime.getTime();
player.SetVar("goNext",uniqueTime);
Taken from this website: Web Object..how to advance - Articulate Storyline Discussions - E-Learning Heroes
The problem I am now experiencing, is that when the course is published to 'CD' from Storyline, the code works perfectly in both SWF and HTML5 outputs. If I publish to a spare webserver/FTP I have, then the SWF based content also works perfectly - HTML5 doesn't load but that's another issue.
However, when I publish to SCORM 2004 in Storyline, this breaks my Captivate SWFs, and they do not advance to the next e-Learning slide when the button is clicked.
I've read this may be due to the LMS/SCORM package not interpreting the javascript from Captivate correctly. This discussion Javascript Print Code won't work on LMS/SCORM mentions the need for separate javascript, possibly including "window.cpAPIInterface."
Can anyone see/suggest a quick fix to my current Captivate code to allow for it to work with a SCORM-compliant LMS?
Thank you for any help you can offer.
Message was edited by: Joe Boss
