Skip to main content
Known Participant
March 4, 2014
Answered

Javascript and Captivate 7

  • March 4, 2014
  • 1 reply
  • 1626 views

I am trying to execute javascript on a button on captivate. I have one button.

I am trying to execute a simple alert('hello'); when I click on the button but nothing happens when I publish it.

I also tried console.log('hi'); but no joy..

This topic has been closed for replies.
Correct answer Varun Kalra

Have you published the .swf output and viewing .htm in browser?

If yes, then add the trusted location for flash global settings.

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

Thanks.

1 reply

Varun Kalra
Participating Frequently
March 4, 2014

Hi there,

Could you try using this javascript in double quotes and do not use semi colon, like this: "alert('Welcome!')"

I inserted this in script window on a button action, it worked for me.

Try using another browser and make sure javascript is enabled for that browser.

Thanks.

SileAuthor
Known Participant
March 4, 2014

Hi,

I tried that too, nothing is happening..Also check that javascript is enabled.

ElGuitarMan0
Inspiring
March 4, 2014

This could also be the Flash security settings issue. You have to add your publish location as a safe location in the Flash security settings.