geting variable from external HTML
June 18, 2008 12:00 AM
Ok, to control and set variables in Lectora you need to use the Lectora javascript commands. To do this in an iframe, you need to know which frame to target, and then use javascript to change the variable.So here is the first part, the setting of the Lectora variable. If I have a variable in Lectora called: MyVariable You can set it on the lectora page by using this command: javascript:Varmyvariable.set('value');To control this you need to know the location of the Lectora page in relation to the iframe. For example, most cases it would be a parent to the iframe. So the code would be as follows.Example: javascript:parent.Varmyvariable.set('value');Let me know if that helps.
Discussions have been disabled for this post