easyui 中关闭window iframe窗口,如何刷新当前页面的datagrid数据表格 datagrideasyuijavascriptjs数据 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window添加onBeforeClose事件,刷新下grid就好了onBeforeClose:function(){parent.$('#datagrid').datagrid('reload');}而且描述也不清楚。。你的#win在iframe里面,datagrid在父页?如果#win在iframe里面window.parent.$('#win')你这句应该会出错。。应该是window.parent.$('#win',docment),指定iframe作为context,要不默认是父页的document了 hi,showbo版主,sorry我在描述下大概是这样的,在easyui panel中打开一个window,而这个window不能移出penel之外,所有我就在panel的父页面定义一块div区域(div区域中包含iframe)每次打开都是一个页面,现在我在penel中关闭window窗口,如何在关闭窗口后刷新penel的datagrid,/父页面代码<div id="div_info"></div> //子页面代码,调用关闭div_info后如何能刷新这个penel中的datagrid//外层弹出框1function openFirstWin(url, title, width, height) {var strWidth;var strHeight;if (width == null)strWidth = 800;elsestrWidth = width;if (height == null)strHeight = 500;elsestrHeight = height;if (url != null) {//var content = '<iframe name=\"first\" scrolling=\"auto\" frameborder=\"0\" src=\"' + url + '\" style=\"width:100%\;height:100%\;\"></iframe>';var content = createIFrame(url);parent.$('#div_info').window({close: false,modal: true,draggable: false,title: title,animate: true,content: content,minimizable: false,width: strWidth,height: strHeight,top: (parent.$(parent.window).height() - height) * 0.5,left: (parent.$(window).width() + 200 - strWidth) * 0.5});}return false;} 还是没懂你的结构。。给你的window配置下面的代码,主要改红色那句,自己依据结构修改选择器或者调用parent对象获取到你的datagridonBeforeClose:function(){parent.$('#datagrid').datagrid('reload');} ExtJS:仅仅到复合式参数就卡住了=.= 两个JS冲突,怎么决绝啊 求助,关于FF取得DIV透明值的问题 初试js动态原型方法时出现一个错误,请大家帮忙指正! js或jquery实现对a标签的点击 怎么样取得隐藏图片的宽度? iframe的传参数问题,急!! 我这样提交要如何实现呢? http://mobile.real.com/? 左边的菜单点样做? 切换本地的.htm文件 window.print()直接打印,不弹出设置打印参数的对话框 ECHARTS如何获取后台数据
parent.$('#datagrid').datagrid('reload');
}而且描述也不清楚。。你的#win在iframe里面,datagrid在父页?如果#win在iframe里面window.parent.$('#win')你这句应该会出错。。应该是window.parent.$('#win',docment),指定iframe作为context,要不默认是父页的document了
hi,showbo版主,sorry我在描述下大概是这样的,在easyui panel中打开一个window,而这个window不能移出penel之外,所有我就在panel的父页面定义一块div区域(div区域中包含iframe)每次打开都是一个页面,现在我在penel中关闭window窗口,如何在关闭窗口后刷新penel的datagrid,
/父页面代码
<div id="div_info"></div> //子页面代码,调用关闭div_info后如何能刷新这个penel中的datagrid
//外层弹出框1
function openFirstWin(url, title, width, height) {
var strWidth;
var strHeight;
if (width == null)
strWidth = 800;
else
strWidth = width;
if (height == null)
strHeight = 500;
else
strHeight = height;
if (url != null) {
//var content = '<iframe name=\"first\" scrolling=\"auto\" frameborder=\"0\" src=\"' + url + '\" style=\"width:100%\;height:100%\;\"></iframe>';
var content = createIFrame(url);
parent.$('#div_info').window({
close: false,
modal: true,
draggable: false,
title: title,
animate: true,
content: content,
minimizable: false,
width: strWidth,
height: strHeight,
top: (parent.$(parent.window).height() - height) * 0.5,
left: (parent.$(window).width() + 200 - strWidth) * 0.5
});
}
return false;
}
parent.$('#datagrid').datagrid('reload');
}