Explore the community Forums Lectora Lectora Questions & Answers Importing Captivate files published as HTML5 into Lectora Reply To: Importing Captivate files published as HTML5 into Lectora

#439013 Score: 1
Profile photo of Tim K
Tim K
Member
contributor
beginner
intermediate
advanced
friend finder
junior moderator
advocate
wise owl
curious george
Group Member
354 pts
@timk

When you publish with “Seamless play” the way through all the iframes is a little longer:

parent.document.getElementsByTagName("iframe")[0].contentWindow.button87.actionShow();

This worked with a Web Window and Seamless play, the code in the other post worked without Seamless play.

There’s a much better way to achieve it. Instead of making Captivate run a specific action, make it run an action group. Through this, you’re much more flexible with what happens when the Captivate output is finished. Then you can use normal Lectora actions to both set the variable and show the button. If you had to change one of them or both or add more actions, you wouldn’t have to edit the captivate file.

Put the two actions into a group on the main page. Make Captivate run:

parent.runGroup_og1234();

This code worked both Seamless and not. Replace og1234 with the html name of the group.

I attached a sample with both solutions.

If this doesn’t work, I fear I can’t help because I don’t have too much experience with Captivate or the way its output is structured.

This post has received 1 vote up.
Attachments:
  1. Web-Window.zip