Oct 05, 2010, 3:21 PM
[CLOSED] [1.0] Closing windows?
Hello,
I've a gridpanel with a toolbar, from toolbarButton open a window in frame mode with a form.
Thanks.
I've a gridpanel with a toolbar, from toolbarButton open a window in frame mode with a form.
NewWindow(null, 'WinNew', 'Add.aspx?type=' + type, 'Crear elemento', h, w, false, true, true, true, 'icon_Add');
function NewWindow(container, winId, winURL, winTitle, winHeight, winWidth, winModal, winMax, winRes, winCollap, winIconCls) {
if (winTitle == '' || winTitle == undefined) { winTitle = 'Teste' }
if (winCollap == '' || winCollap == undefined) { winCollap = false }
if (winRes == '' || winRes == undefined) { winRes = false }
if (winModal == '' || winModal == undefined) { winModal = false }
if (winHeight == '' || winHeight == undefined) { winHeight = 500 }
if (winWidth == '' || winWidth == undefined) { winWidth = 500 }
var win = new Ext.Window({ renderTo: Ext.getBody(),
maximizable: winMax,
resizable: winRes,
collapsible: winCollap,
constrain: false,
title: winTitle,
height: winHeight,
width: winWidth,
modal: winModal,
iconCls: winIconCls,
frame: true,
layout: 'fit',
autoLoad: { maskMsg: "Cargando...", showMask: true, mode: "iframe", url: winURL }
});
win.show();
}
In the page opened in the window in frame mode, I want to close the window. How can I refer to the window on parent opener?Thanks.
Last edited by Daniil; Oct 06, 2010 at 3:04 PM.
Reason: [CLOSED]