M
mike
I have a document lets call it a.cfm that looks like:
<iframe src="" id="test" name="test"></iframe>
<div>
<form name="myform">
... many elements here
</form>
</div>
I open up a.cfm and my js changes the src of the iframe on the fly
between a couple different scripts lets call them x.cfm and y.cfm
2 questions:
1) In x.cfm I want to access the form elements in "myform".
Of course neither of these work:
if ( self.opener.document.myform.elements[] )
if ( document.myform.elements[] )
2) In x.cfm I want to see what parent iframe I opened up.
This doesn't work:
if (document.getElementByID('test') )
Can I not point inside either document I open up?
Mike
<iframe src="" id="test" name="test"></iframe>
<div>
<form name="myform">
... many elements here
</form>
</div>
I open up a.cfm and my js changes the src of the iframe on the fly
between a couple different scripts lets call them x.cfm and y.cfm
2 questions:
1) In x.cfm I want to access the form elements in "myform".
Of course neither of these work:
if ( self.opener.document.myform.elements[] )
if ( document.myform.elements[] )
2) In x.cfm I want to see what parent iframe I opened up.
This doesn't work:
if (document.getElementByID('test') )
Can I not point inside either document I open up?
Mike