PDA

View Full Version : Ext.ux.ManagedIFrame.Window



Spongerusher
13 Aug 2009, 3:20 PM
Hi all,
Im a new user of ExtJS so please, be kind :">

I have an Ext.ux.ManagedIFrame.Window 'I' which defautSrc call an html file.
This one contains a simple Window 'W' with a login form.

My try :
If the submit button is pressed and the fields ok then id like to close my IFrame.Window.

Pb : I cant call the .close() function of my Iframe from the Window 'W'.

parent.Ext.get('I).close();

Thx for help

hendricd
13 Aug 2009, 6:40 PM
Close but, try :

parent.Ext.getCmp('I').close();

or (if same-origin frame):

window.hostMIF.close()

Spongerusher
14 Aug 2009, 12:46 AM
Thx it works !
But can you tell me to which objects refer parent.Ext.get('I) and parent.Ext.getCmp('I) exactly ?

Sorry, buy it's not clear for me...