var getObjID = window.event.srcElement;
var str = '../Popup/frmPopupPage.asp?PageName=' + escape(getPageNameByType(typeID)) + '&Title=' + escape('企业信息选取');returnValue = window.showModalDialog(str,'','dialogWidth=400px;dialogHeight=500px;center=yes;help=no;status=no');
returnValue 老是返回null值 frmPopupPage.asp 是个弹出页面 里面的内容是这样的:<%@ language=vbscript %>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Pragma" content="no-cache">
<title><%=unescape(request("Title")) %></title>
</head> <frameset frameborder=no cols="*" >
<frame src="<%=unescape(request("PageName"))%>">
</frameset></html>
请大家给我指点一下了!谢谢!
无法找到该页应该是你的iis 没有添加asp 脚本权限.
<script>
window.returnValue = "返回的值";
</script>
</head>
中的 PageName 是传来的页面路径
{
var the_url = "";
var the_winstate="";
the_url='../Popup/frmPopupPage.asp?PageName=' + escape(getPageNameByType(typeID)) + '&Title=' + escape('企业信息选取'); the_winstate="dialogWidth=400px;dialogHeight=500px;center=yes;help=no;status=no";
var result = showModalDialog(the_url,window,the_winstate);
if(typeof result == 'undefined')
{
result = 0;
}
return result;
}