Hi all.
I've got a window with a button that opens a new window.
I would like to hide the parent window while the child one is opened.
I guess I have to specify it at renderTo option, but I didn't resolve it so far. Thank you
Open Window
I've got a window with a button that opens a new window.
I would like to hide the parent window while the child one is opened.
I guess I have to specify it at renderTo option, but I didn't resolve it so far. Thank you
Code:
window.parent.wndParent.hide();
var wndChild = new Ext.Window({
autoLoad: {
url: "../../Controller/Method",
mode: "iframe",
discardUrl: false,
nocache: true,
text: "Loading...",
timeout: 60,
scripts: false
},
height: 460,
width: 850,
modal: true,
renderTo: Ext.getBody(),
hideParent: true,
buttons: [{
text: 'Cancel',
handler: closeWndChild
}]
});
wndChild.show();
Open Window
Aucun commentaire:
Enregistrer un commentaire