jsp 页面缓存 showModalDialog 模态窗口

来源:互联网 发布:淘宝全球购假货多吗 编辑:程序博客网 时间:2024/06/06 17:12


   submitAction(document.forms[0], "listCustomer.action?newdate="+new Date());

解决了页面

缓存 与

停留在该页面的问题 主要是加了一个参数时间 这样就不会拿浏览器缓存了

下附完整代码

function OpenModalWindowSubmit(newURL,width,height,needReload,s) {
  var retData = false;
  if(typeof(width) == 'undefined'){
   width  = screen.width * 0.9;
  }
  if(typeof(height) == 'undefined'){
   height  = screen.height * 0.9;
  }
  if(typeof(needReload) == 'undefined'){
   needReload  = false;
  }
  retData = showModalDialog(newURL,
      window,
      "dialogWidth:" + width
    + "px;dialogHeight:" + height
    + "px;center=1;scroll=1;help=0;status=0;");
  if(needReload && retData){
   //window.document.forms[0].submit();
   submitAction(document.forms[0], "listCustomer.action?newdate="+new Date());
   
  }
}

0 0
原创粉丝点击