Communication with web object
Hi,
I`m using Captivate 9 and publish in HTML5.
I have a Captivate course ("Course 1"). Within that course I embed another Captivate course ("Course 2") as a web object. Now I try to communicate between these to courses, i.e. I want to transmit the values of specific variables between the two courses. There have been several postings about this topic in this forum however it still doesn`t work.
This is what I`m doing:
In the embedded course (Course 2) I define a Captivate variable with the name variable_embedded and the value 5. In the "exterior course" (Course 1) I define a Captivate variable with the name variable_exterior without a value (or with any value).
Now I have a button in the embedded course. Clicking that button will execute the following JavaScript (via the Common JS Interface):
window.parent.window.cpAPIInterface.setVariableValue("variable_exterior", variable_embedded);
What I want to happen is that the variable_exterior takes the value of the variable_embedded (i.e. 5 in our example). However it doesn`t work. What am I doing wrong?
And additional question: How can I transmit the value of a variable the other way round - from the exterior course to the embedded course?
Thank you very much in advance for any help! I really appreciate the time you take for this!

