PDA

View Full Version : inside iframe can i refer the parent ext obj, otherwise i have to load again in ifram



sivaengn
6 Jul 2010, 4:33 PM
Hi,
I have iframe we have loaded the ext js parent of the iframe, can i use that object refrence, actually i tried
like inside iframe

var Ext=parent.Ext

upto some point it working but there are some errors..so just wanted to check is it possoble?

sivaengn
7 Jul 2010, 3:04 PM
Let me clear my query:

<html>
<head>
Ext loaded here
</head>
<body>

<iframe>

<html>
<head>
i want to use the Ext object reference loaded in the parent window..is it possible
</head>
<body>

</body>
</html>
</iframe>
</body>
</html>


How to use?

gevik
7 Jul 2010, 10:05 PM
I had a similar situation. I have used the window.top object to get to the parent page.
I hope this helps.

Condor
7 Jul 2010, 10:49 PM
This is rather complicated stuff. I suggest using the ManagedIframe user extension, because it handles all the problems associated with IFRAMEs.