Skip to main content
Participant
March 10, 2014
Answered

Calling a Javascript function in a Web page from Captivate 7

  • March 10, 2014
  • 1 reply
  • 596 views

Hello,

I am trying to call a javascript function in a web page from Captivate 7. The call is on a slide exit event. When I preview the project (F4), I get a prompt that says a javascript function is being called, and tells me to view in a web page. Obviously, that makes perfect sense. However, when I view the same project from the hml page with the necessary Javascript function in it, I get nothing. The script is a simple one that pops up an alert.

I have made sure that the swf file in quesion is set up in the Global Security Settings. I know the javascript function is formatted correctly.

Can somebody please give me an example of how to make a 'Execute Javascript' call from Captivate to a function residing in the html page please.

All help is appreciated.

This topic has been closed for replies.
Correct answer RodWard

Don't just add the SWF file to the Flash Global Security trusted locations.  Add the entire folder containing all published files, or better yet, some folder at a higher level which contains all of your Captivate published projects so that you never have to worry about Flash security issues again.

Also, if this still doesn't work, I would try executing the same JavaScript with a different event than the Exit Slide event.  It can be a little unreliable.

1 reply

RodWard
Community Expert
RodWardCommunity ExpertCorrect answer
Community Expert
March 11, 2014

Don't just add the SWF file to the Flash Global Security trusted locations.  Add the entire folder containing all published files, or better yet, some folder at a higher level which contains all of your Captivate published projects so that you never have to worry about Flash security issues again.

Also, if this still doesn't work, I would try executing the same JavaScript with a different event than the Exit Slide event.  It can be a little unreliable.

dgibbs22Author
Participant
March 11, 2014

Thank you so much for the help. That worked, and now I feel stupid. But it works and that is all that matters.

RodWard
Community Expert
Community Expert
March 11, 2014

Don't feel bad.  The truth is that most Captivate authors are not that familiar with the way Flash Global Security works:

http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global-security