index页面
- HTML code
$.ajax({ type:"post", url:"/ajax/count.asp", success:function(data){ retroClock(data); }, error:function(error){ alert(error); } })}
count.asp页面
- HTML code
<%response.write application("counter")%>
在ie8里面可以的,但是在ie9或者google就提示错误,就是alert(error);显示的错误信息为[object XMLHttpRequest]
求助!!!
------解决方案--------------------------------------------------------
兼容问题
建议使用jquery ajax
------解决方案--------------------------------------------------------
$.ajax 这个不是jquery的语法么
------解决方案--------------------------------------------------------
------解决方案--------------------------------------------------------
alert(error.responseText);
看提示什么
------解决方案--------------------------------------------------------
这个提示的就是错误的原因,你可以输出到页面
如
document.write(error.responseText)
看错误信息,里面很清楚
------解决方案--------------------------------------------------------
document.write(error.responseText)
之后可以复制粘贴过来啊
------解决方案--------------------------------------------------------
粘贴错误的页面文字,不是图