I can't get the moduleReadyEvent to fire. I know I'm doing something stupid, but I've been fussing with this for hours now and could really use some help.
I'm on Captivate 18.104.22.1686, publishing as HTML5 only.
This code is on my first slide, using an On Enter action.
The time shows in the console (10:34 am), so I know the code works. The success message never appears.
window.addEventListener("moduleReadyEvent", function evtFunc(evt)
What am I missing?
How about trying this method...?
To address the moduleReadyEvent... try this...
var interfaceObj = evt.Data;
var eventEmitterObj = interfaceObj.getEventEmitter();
Brilliant, this totally worked. Thank you!!
Strange to me that you got it to work by running that code in an 'OnEnter' action on the first slide.
My understanding was that it has to be ran from index.html or some external js file as the moduleReadyEvent fires long before any OnEnter action gets triggered?!
Maybe some js guru can chime in and explain?