Skip to main content
Participant
January 14, 2011
Question

Big big javascript issues in Captivate 5

  • January 14, 2011
  • 1 reply
  • 2118 views

Hello to all,

we use captivate 5 to supply our employees with e-learning which contain different types of subjects. We' use it very often but it is a pitty that we have a lot of problems in some special cases.

one of these cases is:

when performing javascript (e.g. "window.open('somefile.ext','Topic',..) ) in captivate 5 (let us say i use it as a click event on a button or clickable-field), it is running this javascript but in a weird way: For me it looks like he is adding this javascript in a href="javascript:...."-environment, which let the click end in the same browser window with "javascript:window.open(..)" in the url- field... The same situation when adding a custom .js file in the generated html file and run the function name via captivate. As far as i remember, this problem wasnt in CP4.(but i'm not sure)

(Browser: IE 6 (i know worth laughing about this, but i cannot change the philosophy of our company 😉 )

What is the problem here? Where do i have my mistake?

thanks

This topic has been closed for replies.

1 reply

oliver_rAuthor
Participant
January 14, 2011

Solved in a lucky moment.... oh come on captivate, really?

To avoid performing the javascript in a url-field try this: Assign the function to a variable in the captivate javascript window: var test = window.open('test.htm','topic');

oliver_rAuthor
Participant
January 14, 2011

Great it works when i set the execution mode to JavaScript, but when i try to execute Javascript within a custom action from captivate, the javascript will be executed (or not) but the only thing i can see is a window showing up for 10 ms. (window opens, closes immediatly)

???

oliver_rAuthor
Participant
January 14, 2011

Solveg again (oh god what a good day)

Try to switch the order of your custom action:

That means:

DONT

1. Exectue Javascript

2. Continue

DO

1. Continue

2. Execute Javascript