Javascript syntax - assistance needed

Jan 02, 2013

Wanting a button in the last slide of a Presenter SCO to advance my LMS activity tree (to the next SCO), I configured a Flash button to send a javascript call to the LMS. With help, I also modified the SCORM2004Functions.js file (slightly). The button calls cmi.exit and the adl.nav.request is set to 'continue' which sends my LMS to the next activity in the tree. Works great.

When i moved to Storyline, I can duplicate the functionality but thought I should be able to make the javascript call directly by a trigger instead of embedding a Flash file. The problem is if I use the same code in the trigger the function doesn't work. I think it may be a syntax error but I have nothing to guide me. I'm not a coder and not even a very good hack.

The embedded Flash file (created in Captivate 3) has this code in the button (_top):

javascript:function SCORM2004_CallSetValue("cmi.exit")

I want to call 'cmi.exit' but trial and error is killing me because it's time consuming (modify, publish, zip, upload, associate in LMS, launch, delete, repeat). If I knew where to start I'd at least know when I had a near miss. Any  suggestions? Thanks.

Be the first to reply

This discussion is closed. You can start a new discussion or contact Articulate Support.