在openmodel中执行完对数据库的操作(增删改)
点击保存按钮,将该页面关掉,然后调用父页面的刷新操作,为什么有时候新增或修改没有成功?
是什么原因引起的?有什么解决办法?function test() {
document.testForm.submit();
window.close();
}

解决方案 »

  1.   

    你改用window.opener.location看看,楼主应该好好地学学JS了,
      

  2.   


    if(parent.opener!=null){
    if(parent.opener!=null){
    parent.opener.history.go(0);
    }
    parent.window.opener=null;
    parent.window.open("",'_self',""); 
    parent.window.close();
    }
    else{
    if(opener!=null){
    opener.history.go(0);
    }
    window.opener=null;
    window.open("",'_self',""); 
    window.close();
    }试试这个
      

  3.   

    楼主会不会是 提交之后 链接超时或者操作的时间比较长
     你的新增和修改还没有执行完毕 就已经close掉 链接就此中断呢