Skip to main content
Inspiring
May 20, 2016
Question

How do I get the strExitType variable out of the scormdriver.js using Javascript

  • May 20, 2016
  • 0 replies
  • 135 views

HI again

The function SCORM_TranslateExitTypeToSCORM() can be found in the scormdriver.js that accompanies the published swf in the SCORM packet.

It has a variable "strExitType" that it uses to store:

1 EXIT_TYPE_UNLOAD

2 EXIT_TYPE_FINISH

3 EXIT_TYPE_TIMEOUT

I am just trying to push this to a Captv8 variable "FOO" using

cpAPIInterface.setVariableValue("FOO",strExitType); in the internal JavaScript Window.

But my code seems to break.

Can anybody help with how to do this?

    This topic has been closed for replies.