在关闭ext.window前,如何让父页面调用子页面函数?
- 内容介绍
- 文章标签
- 相关推荐
本文共计160个文字,预计阅读时间需要1分钟。
javascriptext.window.closeBeforeEvent=function(parentPage) { var downloadStyle=new Ext.Window({ id: 'downloadstyle', modal: true, width: 664, height: 750, x: 300, y: 50, draggable: true });};
ext.window 关闭之前事件 父页面var downloadstyle=new Ext.Window({ id:'downloadstyle', modal: true,//true为模式窗口,后面的内容都不能操作,默认为false width: 664, height: 750, x:300, y:50, draggable:true,//是否可以拖动,true表示可以拖动,默认为false resizable:false,//布尔类型,用户是否可以调整窗体大小,默认值为true表示可以调整大小。 layout: 'fit', plain : true, //true则主体背景透明,false则主体有小差别的背景色,默认为false autoScroll:false, listeners:{ beforeclose:function(win) { childbatch.window.childFunction(0); //childbatch是iframe的name return true; } }, html: '' }); downloadstyle.show(); ext.window 关闭之前事件 子页面
function childFunction(var1){ alert(var1); }
本文共计160个文字,预计阅读时间需要1分钟。
javascriptext.window.closeBeforeEvent=function(parentPage) { var downloadStyle=new Ext.Window({ id: 'downloadstyle', modal: true, width: 664, height: 750, x: 300, y: 50, draggable: true });};
ext.window 关闭之前事件 父页面var downloadstyle=new Ext.Window({ id:'downloadstyle', modal: true,//true为模式窗口,后面的内容都不能操作,默认为false width: 664, height: 750, x:300, y:50, draggable:true,//是否可以拖动,true表示可以拖动,默认为false resizable:false,//布尔类型,用户是否可以调整窗体大小,默认值为true表示可以调整大小。 layout: 'fit', plain : true, //true则主体背景透明,false则主体有小差别的背景色,默认为false autoScroll:false, listeners:{ beforeclose:function(win) { childbatch.window.childFunction(0); //childbatch是iframe的name return true; } }, html: '' }); downloadstyle.show(); ext.window 关闭之前事件 子页面
function childFunction(var1){ alert(var1); }

