Javascript IE 7中的JQuery Post请求失败
我正在使用jQuery1.4.4编写一篇标准文章,而不是跨域Javascript IE 7中的JQuery Post请求失败,javascript,jquery,post,Javascript,Jquery,Post,我正在使用jQuery1.4.4编写一篇标准文章,而不是跨域 $.post("http://localhost:8085/ComponentPreferences:ignoreContent?_="+new Date().getTime(), {mydata:bla}, function(xml) { //do something }); 这在IE7上突然停止了工作(适用于所有其他浏览器),
$.post("http://localhost:8085/ComponentPreferences:ignoreContent?_="+new Date().getTime(), {mydata:bla}, function(xml) {
//do something
});
这在IE7上突然停止了工作(适用于所有其他浏览器),请求根本就不会发送(通过Fiddler验证)。它曾经在IE7上工作得很好(据我所知,没有任何变化:-)
我已经调试了jQueryPost方法到ajax调用,并且可以看到它正在打开套接字(jQuery1.4.4上的第5912行)
传入的URL看起来不错,类型为POST,异步为true
但这永远不会回来。未报告任何错误。我至少有IE7上的所有安全设置
有没有进一步调试的线索,或者问题出在哪里?试试这个,确保服务器收到请求
$.ajax({
type: 'POST',
url: url_,
data: urlParams_,
dataType: 'text',
async: false,
success: function(result_) {
if (result_.length > 0 ){
try{
result_ = $.parseJSON(result_);
result = result_;
}catch (e){
alert(e);
}
}
}
});
尝试此操作,确保服务器正在获取请求
$.ajax({
type: 'POST',
url: url_,
data: urlParams_,
dataType: 'text',
async: false,
success: function(result_) {
if (result_.length > 0 ){
try{
result_ = $.parseJSON(result_);
result = result_;
}catch (e){
alert(e);
}
}
}
});
加
$.support.cors=true;
$.mobile.allowCrossDomainPages=true
用于向服务器提交ajax请求添加
$.support.cors=true;
$.mobile.allowCrossDomainPages=true
向服务器提交ajax请求著名的最后一句话:“据我所知,一切都没有改变”:d著名的最后一句话:“据我所知,一切都没有改变”:永远不会进行请求。在xhr.open(type、s.url、s.async)上失败;通过调试jQUery代码确认。使用servlet/jsp/java(framwork)的ru是什么?然后尝试用
URL\uuu
替换URL,并提醒结果
我不确定后端与此有何关系,请求未被发出。我已经通过使用wireshark/fiddler/调试jQuery代码确认了这一点。从未发出请求。在xhr.open(type、s.url、s.async)上失败;通过调试jQUery代码确认。使用servlet/jsp/java(framwork)的ru是什么?然后尝试用URL\uuu
替换URL,并提醒结果
我不确定后端与此有何关系,请求未被发出。我已经通过使用wireshark/fiddler/调试jQuery代码确认了这一点。