Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing element from a pop-up window (complex hiererchy)

Status
Not open for further replies.

sledgeas

Programmer
Jul 8, 2008
1
IT
Hello,

Assume the script A had created popup B = window.open ...

Script S in the B needs to access an element E which is in the A's container.

Hierarchies/locations: root<IFRAME<A<E>>>
and for popup: root<FRAME<B<S>>>

How should such an access be performed?

Something like window.parent.opener.frame["IFRAME_ID"].A.getDocumentByID(E) ? Or I suppose there would be more JavaScripting involved.

And where should the window.enableExternalCapture() be placed?

Please help me very much :) I'm a rookie.

--
sledge
 
[tt]opener.document.getElementById('elementId')[/tt] should suffice.

----
star.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top