Passing variable from Lectora to Captivate
October 4, 2010 12:00 AM
Can anyone tell me how to pass a variable from Lectora to Captivate? I thought I had it figured out last week, but I must've been dreaming because it's not working for me now. Essentially, what I want to do is have a button on a Lectora page where the user can choose to show/hide text boxes in Captivate. The way I envision it working is that on click of the button in Lectora, the variable "ViewCaptions" is set to on/off. When a swf file embedded on the page launches, it would read the variable and if "on", shows the text box or if "off", hides the text box. Thanks so much!
Discussion (4)
Could someone give step by step instructions on how to setup Lectora to "control" Captivate 6. The situation is to automatically enable the close caption in an imported Captivate 6 movie.
Thanks,
sjones
I had no success passing data between Captivate and Lectora.
Lectora: Flash Command Go to frame or go to label of a SWF from Captivate never worked.
Passing score from Captivate to Lectora didn't work.
Does it work for you at all?
Thanks!
I'm back on this issue trying to pass value from Captivate 8 to Lectora 16. Can you tell me what's wrong with the script below?
Captivate: I have Javascript executed in a button to pass the value of Captivate variable Q1 to a Javascript variable SQ01.
var SQ01 = window.cpAPIInterface.getVariableValue('Q1');
Lectora: I have Javascript in external HTML
undefined
function getData() {
var SQ01
VarSQ001.set(SQ01);
}
undefined
Then A button to call the function and display the value of SQ001 passed from SQ01 in Captivate.
So far, it's blank.
I checked the console and saw "Cannot read property 'getVariableValue' of undefined" message in the console. I do have standard.js generated when publishing Captivate file.
Thanks for your help,
I found the fix.
1. Load the SWF using the HTML code generated by Captivate with External HTML. It includes the JS link that adding it in Lectora does not work.
2. Take var SQ01 out. It seems to initialize the value received from Captivate.
Discussions have been disabled for this post