把采集程序传到别的空间试试
如果没问题的话就证明本地环境有问题
检查组件Microsoft.XMLHTTP是否支持
javascript 代码
- <script language="javascript">
- <!–
- var xmlHttp = false;
- function ajaxcreate(){
- try {xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (e2) {
- xmlHttp = false;
- }
- }
- if (!xmlHttp && typeof XMLHttpRequest != ‘undefined’) {
- xmlHttp = new XMLHttpRequest();
- }
- if(!xmlHttp){alert(‘Create Xmlhttp Fail ‘);return false;}
- }
- function sugguest(){
- ajaxcreate();
- var xmvalue=document.getElementById("key").value;
- //var url="post.ASP?key="+encodeURI(xmvalue)+"&rnd="+Math.random();
- var url="post.ASP?key="+(xmvalue)+"&rnd="+Math.random(1);
- if (xmvalue== null ¦ ¦ xmvalue.length>20 ¦ ¦ xmvalue == "") return false;
- xmlHttp.open("POST",url,true);
- xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
- xmlHttp.send(xmvalue);
- xmlHttp.onreadystatechange=returns
- tate;
- }
- function returnstate(){
- if(xmlHttp.readyState != 4 ){
- document.getElementById("sug").innerHTML="plase wait….";
- }
- if(xmlHttp.readyState == 4 ){
- document.getElementById("sug").innerHTML=xmlHttp.responseText;
- }
- }
- </script>
在注册表的HKEY_CLASSES_ROOT中找到Microsoft.XMLHTTP键,右键查看权限看有users的读取权限没有,如果没有把users的读权限加上.
搞定收工!
评论前必须登录!
注册