Explore the community Forums Lectora Online Lectora Online Questions & Answers How do I use the HTML Extension object at all? And embed iFrames? Reply To: How do I use the HTML Extension object at all? And embed iFrames?

#373096 Score: 0
Profile photo of AndyShaw
AndyShaw
Member
beginner
intermediate
wise owl
@AndyShaw

Does anybody know how to pass a JS variable from within an iframe to Lectora?

I have been using Captivate files (swf) and a HTML header script to link the JS variable from Captivate to an action group in Lectora for years without problems but I’m trying to use HTML5 now and can’t seem to get it to work. The JS is still being fired from the HTML5 content in the iframe, it just isn’t being picked up in Lectora.

I read somewhere that the variable has to be initialised first, so I have tried that. I have also tried calling the Action Group directly from the html5 in the iframe as well, bypassing the header script, but that didn’t work either.

I’m out of ideas now. Any help would be greatly appreciated.

Thanks,

Andy