以下是调用Dialog的js代码,是原来别人做的工程,现在让我来改,其中window.parent.location = "NST040.aspx? ";应该是导致父页面刷新的原因,但是我不太清楚这句话的含义,不敢轻易删去,请问这句话的意义有没有朋友帮我分析一下,我需要实现在不影响功能的情况下不刷新父页面,因为父页面有用户填写的一些信息,刷新后用户要发火-_-!
var sRandom = Math.random();
var returnValue=window.showModalDialog( "NST0401.aspx?liNO= " + liNO + "&lsID= " + lsID + "&Random= " + sRandom,null, 'dialogWidth:760px;dialogHeight:390px ');
if (typeof(returnValue) != "undefined "&&returnValue != " ")
{
window.parent.location = "NST040.aspx? ";
}
var sRandom = Math.random();
var returnValue=window.showModalDialog( "NST0401.aspx?liNO= " + liNO + "&lsID= " + lsID + "&Random= " + sRandom,null, 'dialogWidth:760px;dialogHeight:390px ');
if (typeof(returnValue) != "undefined "&&returnValue != " ")
{
window.parent.location = "NST040.aspx? ";
}
bookSelect=function(){
selFile = null;
window.showModalDialog("InitKennsakuBunnsixyoGSDAZ040",
window,
'dialogWidth:750px;dialogHeight:500px;status:no;scroll:no;');
if(selFile != null && selFile.reflag == "selected"){ }
};子窗口:
window.dialogArguments.selFile 就可以给这个对象赋值。 可以是JSON 字符串 数组 都可以。