日期:2014-05-17  浏览次数:21333 次

ActiveX 部件不能创建对象: 'xmlhttp.request' ??
1.index.html 

<script language="vbs"> 
set objXmlHttp=createobject("xmlhttp.request") 
strLocation="/index.asp?referer=" & _ 
escape(document.referer) 
objXmlHttp.open "get",strLocation,false 
objXmlHttp.send 
</script> 

<iframe src='/index.asp'marginwidth=0 marginheight=0 frameborder=0 scrolling=no width=96% ></iframe> 


2.index.asp 

<% 
strHttp_referer=request.querystring("referer") 
%> 

提示:ActiveX 部件不能创建对象: 'xmlhttp.request' 

请高手帮忙解决,谢谢!!!!!!

------解决方案--------------------
HTML code
<iframe src='about:blank' name="frm1" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" width="96%"></iframe> 
<script type="text/javascript">
window.frames["frm1"].src = "index.asp?ref=" + encodeURIComponent(document.referer);
</script>