Iframe populating Lectora variable

Dear all,


I know there have been a couple of posts about this, have tried various options none of which seem to work. As a beginner to all of this, I'm trying to understand the basics of this, so that I can use it eventualy to pull different variables into lectora.


I have one html page, doc2.html, which contains the javascript variable iframe="success".


In lectora, I have a page with an external HTML object. In the custom HTML section I have;


iframe name="ifrtwo" src="http://localhost/doc2.html" width="1" "height="10" /iframe

script type="text/javascript"

var l=window.ifrtwo.iframe;

function setvariable(){parent.Variframe.set('l')}

/script


The eventual idea is to have the iframe invisible by setting height, width and borderframe to 0.


I have a text box which modifies its contents to Variframe after a second. At the moment, it will change the text box to 'l'. I can't seem to get it to put in the variable value no matter how I change it. Can anyone help please?


Simon

Discussions have been disabled for this post