我用ext写的页面1,在submit时用iframe进行的页面跳转,跳转到2,
代码:
var temurl='/。。/itdInfoAction.do?method=init&channelId='+channelId;
var win=new Ext.Window({
width:600,
height:300,
buttonAlign:"center",
modal:true,
shadow:true,
closeAction:"hide",
html:'<iframe id="add_info_ext" src=temurl/>' });
return win.show();我的问题是:我想在关闭页面2时,同时刷新页面一,怎么才能做到呢?
(达到和下边同样的功能:window.operner.location.href="页面1的访问路径";//刷新页面1
self.close();//关闭页面2自己
)
用ext怎么来实现?
代码:
var temurl='/。。/itdInfoAction.do?method=init&channelId='+channelId;
var win=new Ext.Window({
width:600,
height:300,
buttonAlign:"center",
modal:true,
shadow:true,
closeAction:"hide",
html:'<iframe id="add_info_ext" src=temurl/>' });
return win.show();我的问题是:我想在关闭页面2时,同时刷新页面一,怎么才能做到呢?
(达到和下边同样的功能:window.operner.location.href="页面1的访问路径";//刷新页面1
self.close();//关闭页面2自己
)
用ext怎么来实现?
解决方案 »
- 问一下自动化测试的概念是最近新兴起来的吗?
- Myeclipse安装SVN插件的时候报jvm terminated JVM Terminated.ExitCode=1错误
- 那个was6.1
- !!!!!!!!!!!!【动态修改struts 上传文件的大小】!!!!!!!!!!!!!!!!!!!
- Myfaces+Richfaces的自定义组件问题。(3)
- HQL 的查询语句怎么写啊?
- 我用freemarker导出的xml文件在我的机器上显示是中文内容,为什么到别的机器上就成了乱码呢?
- 如何把注解应用在类里面的属性上
- 一个关于IP的问题
- 怎样在JAVAMAIL中发附件啊?
- hibernate中session的save,delete方法问题
- 请教websphere5.1对el表达式和jstl的支持情况!
win.on({
'hide':function(){ //当关闭这个窗口是执行
在这里写刷新另一个窗口的代码
}
})
win.on('close',function(panel){
window.operner.location.href="页面1的访问路径";//
});
我的做法是:
在父页面定一个全局变量:
1、var win_jsp="";2、
function init(){
var win=new Ext.Window({
width:612,
height:405,
resizable:false,
buttonAlign:"center",
modal:true,
shadow:true,
border:false,
closeAction:"hide",
listeners:{ destroy:function(){search();
}
} ,
html:'<iframe src="'+sinocms+'/itdInfoAction.do?method=init&channelId='+channelId+'" frameborder=0 framespacing=0 width=100% height="100%" marginheight=0 marginwidth=0 noResize vspale="0" scrolling="no"/>'
});
win_jsp=win; //把窗口给变量赋值
return win.show();
}3、子页面中:
function close(){
window.parent.win_jsp.close();
}