首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

ActiveX 元件不能创建对象: 'xmlhttp.request' ?

2012-08-10 
ActiveX 部件不能创建对象: xmlhttp.request ??1.index.htmlscript languagevbsset objXmlHttpcre

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> 

热点排行