View Full Version : Howto close a dynamic window

4 Apr 2008, 3:39 PM
I created a window with iframe content, and have cancel button, in this button i want write a code for close window.

My question how to close this window?

4 Apr 2008, 4:02 PM
lets supose that this window have id "mywindow"

add the handler at cancel button like
handler: function() { Ext.getCmp("mywindow").close(); }

that will destroy the object!


5 Apr 2008, 5:08 AM
yes i know its .close()

but i have a dynamic window creation, i don't know a id.

i resolved my problem with another way.

29 May 2008, 12:00 AM
Hi pho3nix_, if you have solved your problem I think you should share the solution because there might be more people stuck in the same problem as you were (as I'm now). So, would you tell us how did you to to solve this? Thanks a lot :)