I have a PageControl HTC that uses an IFRAME for the page of each tab.
Problem is the DOM from the IFRAME cannot see the DOM of the top page (the
page that hosts the HTC).
Is there a workaround for this?
tia
Nic Roche
You can use:
element.document
this works as the element refers to the element as it lies in the
containing document and not the element's internal document. "element"
is a key word inside a htc.
Cheers
Dewy
If you want to get access to the container DOM, then, from inside the
IFRAME use:
window.parent.document
This will give you access to the page containing the htc's document.
I am wondering why you would want to do this though? Shouldn't the HTC
be taking care of its internal elements for encapsulation reasons?
Cheers,
Dewy