是这样的本人要实现添加数据以后关闭子窗口,然后刷新父窗口的数据,不知道怎么样实现,请高手帮看看,本人直接贴代码了
singleSelect : true,toolbar : [{ text : "新增", iconCls : "icon-add", handler : function() { openWin1("${webContext}/xzcf/ajly/addDsr.action"); } } function openWin1(url){ window.parent.$("#parentBusiDiv1").dialog({ title : "新增数据", iconCls : "icon-book", minimizable : false, maximizable : false, collapsible : false, width :700, height : 500, content : "<iframe id="processIframe" src="" + url + "" style="width:100%;height:98%;" scrolling="auto" frameborder="0"></iframe>", modal : true }); window.parent.$("#parentBusiDiv1").dialog("open"); } $("#edit_form").form("submit", { url:"${webContext}/xzcf/ajly/saveDsr.action", success:function(data){ var data = eval("(" + data + ")"); if(data.success){ window.parent.$.messager.show({ title:"提示信息", msg:data.msg, height:150, timeout:5000, showType:"slide" }); alert($("#Dsrtablelist")); closeWin(); }else{ window.parent.$.messager.alert("提示信息",data.msg+",请检查当事人信息表单填写数据!","warning"); } } });
解决方案
100
$("#edit_form").form("submit", { url:"${webContext}/xzcf/ajly/saveDsr.action", success:function(data){ var data = eval("(" + data + ")"); if(data.success){ window.parent.$.messager.show({ title:"提示信息", msg:data.msg, height:150, timeout:5000, showType:"slide" }); alert($("#Dsrtablelist")); $("#table").datagrid("load");$("#parentBusiDiv1").dialog("close"); }else{ window.parent.$.messager.alert("提示信息",data.msg+",请检查当事人信息表单填写数据!","warning"); } } });