火狐浏览器详细页面点×提示弹出框,怎么去掉呀

跳转页面用的
var rtn = showModalDialog(temppath,obj,'dialogWidth:800px;dialogHeight:500px;center:yes;help:no;resizable:yes;status:no;location:no;');
if(rtn=="true"){//详细页面关闭后刷新列表
test();
}
返回用下面的方法不提示弹出框了,但是点击×开始有弹出框
function back() {

window.returnValue = "true";
window.opener = null;
window.close();

}

这是一个详细页面我就是用ajax查了下后台数据:
jQuery("#list2").jqGrid({

    url : path + '/departmentCheckActionnewYSLB.do?method=queryDetail&rid='+rid,// 数据源
    //url : path + '/departmentCheckActionnew.do?method=query2&yslx='+d,
    datatype : "json",// 数据类型
    colNames : ['审批状态', '级别','审批意见','审批人','审批日期'],// 标题列
    colModel : [{name : 'spzt',index : 'SPBZ',width : 50,sortable : false,align : "center"}, 
                {name : 'jb',index : 'JB',width : 50,sortable : false,align : "center"},
                 {name : 'spyj',index : 'SPYJ',width : 50,sortable : false,align : "center"},
                 {name : 'spr',index : 'SPRXM',width : 50,sortable : false,align : "center"},
                {name : 'sprq',index : 'SPRQ',width : 50,sortable : false,align : "center"}
    ],// 每列的参数
    rowNum : 5, // 默认每页行数
    autowidth : true,
    height : 100,// grid高度
    shrinkToFit : true,

    multiselect : false,
    cellEdit : false,
  cellsubmit : 'clientArray',
  loadtext : '请求数据中.....',
    //scrollOffset : 0, 
    //rowList : [10, 20, 30, 50, 100], 
    postData : {
        flag : where
    },
    //pager : '#pager2', 
    sortname : 'l.sprq desc', 
    mtype : "post", 
    viewrecords : true,

    sortorder : "",
    //pagerpos : "left",
    //recordpos : "right",
    beforeSelectRow : function(rowid, e, col) {
        if (col == "0") {
            return true;
        } else {
            return false;
        }
    }
});

jQuery("#list2").jqGrid('navGrid', '#pager2', {position:"center",edit:false,add : false,del : false,search:false,refresh:false});

但是怎么知道我这个页面用的是location.href还是reload呀

父页面的查询方法是:
function test(){

var nyq = document.getElementById("nyq").value;
var nyz = document.getElementById("nyz").value;
var dqjbspzt = document.getElementById("dqjbspzt").value;
var sfzj = document.getElementById("sfzj").value;
var ssbm = document.getElementById("ssbm").value;
var bxzt = document.getElementById("bxzt").value;
var fykm = document.getElementById("fykm").value;
var spzt = document.getElementById("spzt").value;
var ssxmbh = document.getElementById("ssxmbh").value;
var ssxmmc = document.getElementById("ssxmmc").value;
var ysbh = document.getElementById("ysbh").value;

var filter = " 1 = 1 ";
if(dqjbspzt == "1"){
sfkbj=true;
filter = filter + "AND B.DQJBSPR = '"+useraccount+"' and (select EDUBIS.GETYSSP_FLAG(b.MX_RID,b.JB,b.LEVEL_END,l.SPZT,'" +useraccount + "') from dual) = '1' AND B.LCZT = '0' and l.spzt='1'";
}else if(dqjbspzt == "3"){

        sfkbj=false;        
    filter = filter + " and (select EDUBIS.GETYSSP_FLAG(b.MX_RID,b.JB,b.LEVEL_END,l.SPZT,'" +useraccount + "') from dual) = '0'";
}

if (null != nyq && "" != nyq) {

    filter = filter + " and to_char(ysssny,'yyyy-MM') >= '"+nyq+"' ";
}
if (null != nyz && "" != nyz) {
    filter = filter + " and to_char(ysssny,'yyyy-MM') <= '"+nyz+"' ";
}
if (nyq>nyz){
    alert("预算年月(起)大于(止)");
    return false;
}
if (null != sfzj && "" != sfzj) {
    filter = filter + " and l.sfzj = '"+sfzj+"'";
}
/*if (null != yslx && "" != yslx) {
    filter = filter + " and l.yssqlb ='"+yslx+"' ";
}*/
if (null != ssbm && "" != ssbm) {
    filter = filter + " and l.jspbmbh = '"+ssbm+"' ";
}
if (null != bxzt && "" != bxzt) {
    filter = filter + " and l.bxzt = '"+bxzt+"' ";
}
if (null != fykm && "" != fykm) {
    filter = filter + " and l.fykm = '"+fykm+"' ";
}
if (spzt=="3") {
    sfkbj=false;
    filter = filter + " and l.spzt = '"+spzt+"'";
}else if(null != spzt && "" != spzt){
    filter = filter + " and l.spzt = '"+spzt+"'";
}
if (null != ssxmbh && "" != ssxmbh) {
    filter = filter + " and l.ssxmbh= '"+ssxmbh+"' ";
}
if (null != ssxmmc && "" != ssxmmc) {
    filter = filter + " and l.xmmc= '"+ssxmmc+"' ";
}
if (null != ysbh && "" != ysbh) {
    filter = filter + " and l.ysbh ='"+ysbh+"' ";
}
where=filter;
 $("#list2").jqGrid('setGridParam',{postData :{ flag : where}}).trigger('reloadGrid',[{page:1}]);  

}

 在里面拼了where条件

1个回答

test的代码呢?如果是location.reload当前页面,并且当前页面是其他表单提交过来的肯定会提示这个了,用location.href=location.href来刷新,而不是reload

gacaibai
gacaibai 我又更新了问题,写在给你的评论里格式都没了,代码看着好费劲
接近 4 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问