PDA

View Full Version : Found this... Haven't tried it yet. Another Iframe Issue fixed?



bhaidaya
13 Sep 2007, 8:02 AM
This makes an iframe act just like any other 'updateable' container to the ContentPanel.

and

This also means you can query (Ext.select) on the Iframe.document's DOM using Ext in the parent window without loading the Ext framework in the Iframe:


http://extjs.com/forum/showthread.php?p=62928#post62928...

I'll post any results i have with this... interested to hear of any one elses attempt as well..

RWaters
13 Sep 2007, 10:25 AM
This solution allows you to use updatemanager to load content into an iframe and use ext.select to find elements within an iFrame... unfortunately this does not solve the issue of the content in the iFrame having access to the entire Ext library without loading it again within the iFrame.

From discussions I've had with a few others, there's not really a good way to give an iFrame access to code in the parent document and still have it run correctly within the context of the frame. Which is why we worked to come up with the 'hack' that forces the browser to free up the memory used when loading the entire framework again into the iframe.