ExtJs有个Window,然后有个属性html(iframe),到另外一个页面,然后在另外页面关闭,同时关闭window
如题win = new Ext.Window({
title: "add script",
id: 'winScript',
width: '70%',
param: param,
height :Ext.getBody().getHeight() - 65,
maximizable: true,
modal: true,
closable: true,
html: "<iframe width='100%' height='100%' frameborder='0' src='taf_uploadScript.action'></iframe>",
listeners: {
'beforeclose': function(p) {
p.param.getStore().reload();
}
}
});
if(result){
alert("上传成功");
//要在这里关闭
} --------------------编程问答-------------------- 已经解决了,
if(result){
alert("上传成功");
var win = parent.Ext.getCmp("winScript");
if (win) {win.close();}
}
补充:Java , Web 开发