xp电脑对ajax的兼容性,#9851 (jquery的ajax在XP sp2系统不能响应) – jQuery - Bug Tracker...

Here is a translation from google translate, followed by my response:

XP sp3 everything is normal, the sp2 is not responding. Request has been sent to the server, the server works fine, but not execute ajax success, do not perform error, do not perform complete. The code $. Ajax ({

type: "get", async: false, timeout: 10000, url: "/ login.do", data: "username =" + userName + "& pwd =" + password + "& d =" + new Date (), contentType: "text / html ", success: function (responseText) {

alert ("searchUserInfo_2");

}, Error: function (x, e) {

alert ("searchUserInfo_3");

}, Complete: function (jqXHR, textStatus) {

alert ("searchUserInfo_4");

}

});

In addition, the following methods can be var xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP"); xmlhttp.Open ("GET", CURL, false); try {

xmlhttp.Send (); var resultNum = xmlhttp.status;

if (resultNum == 200) {

return true;

}

} Catch (e) {}

=================== Sp2 default ie6, upgrading to ie8 problem still exists, can only be marked with sp3 patch.

Original jquery1.3.2, upgrade to the latest 1.6.2 does not work.

Thanks for submitting a ticket. I've just re-tested the $.ajax .success(), .complete() and .error() methods with jQuery edge (1.6.2+) and they all appear to be working fine with suggests there is something wrong with the server-side login.do you appear to be calling. If you take a look at the test cases below, you'll see the $.ajax methods mentioned working fine on jsfiddle.net.

Closing as this does not appear to be an issue related to core's $.ajax module functioning incorrectly.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值