showModalDialog刷新问题_showmodaldialog

其他范文 时间:2020-02-27 19:16:43 收藏本文下载本文
【www.daodoc.com - 其他范文】

showModalDialog刷新问题由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“showmodaldialog”。

JS:

// JavaScript Document

function showDialog(url, title, pageWidth, pageHeight){

if(typeof(pageWidth)!= 'number')pageWidth = 800;

if(typeof(pageHeight)!= 'number')pageHeight = 520;

var md = window.showModalDialog(url, title,“dialogWidth=”+pageWidth+“px;dialogHeight=”+pageHeight+“px;status=no;toolbar=no;location=no”);

if(md == undefined){

md = window.returnValue;

}

if(typeof(md)!= “undefined”){

if(md == “1”){

search();//刷新

}

}

}

父页:

showDialog(“Add.aspx?id=” + data + “&t=” +(new Date()).getTime(), “标题”, 650, 450);

子页:在里添加下面代码

按钮事件:

保存成功:

Response.Write(“ ”);;

或取消:

Response.Write(“ ”);

下载showModalDialog刷新问题word格式文档
下载showModalDialog刷新问题.doc
将本文档下载到自己电脑,方便修改和收藏。
点此处下载文档

文档为doc格式

相关专题 showmodaldialog
    热门文章
      整站推荐
        点击下载本文