IE 7中的JQuery Post请求失败 [英] JQuery Post request failing in IE 7

查看:73
本文介绍了IE 7中的JQuery Post请求失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JQuery 1.4.4进行标准发布,而不是跨域。

I'm doing a standard post using JQuery 1.4.4, not cross domain.

             $.post("http://localhost:8085/ComponentPreferences:ignoreContent?_="+new Date().getTime(), {mydata:bla}, function(xml) {
                          //do something
             });

这突然停止在IE7上工作(适用于所有其他浏览器),请求根本就不会被发送(通过Fiddler验证)。它曾经在IE7上工作正常(据我所知,没有任何改变:-))

This has suddenly stopped working on IE7 (works on all other browsers), the request is simply never sent (verified via Fiddler). It used to work fine on IE7 (as far as I am aware, nothing has changed :-) )

我已经调试了JQuery post方法到ajax调用并且可以看到它正在打开套接字(jQuery 1.4.4上的〜第5912行)

I've debugged the JQuery post method through to the ajax call and can see that it's getting as far as opening the socket (~ line 5912 on jQuery 1.4.4)

xhr.open(type, s.url, s.async);

传入的URL看起来不错,类型为POST,async为true。

The URL being passed in looks good, type is POST, async is true.

但这永远不会回来。没有报告错误。我已经在IE7上获得了所有安全设置。

but this never returns. No error is reported. I've got all the security settings on IE7 at the minimum.

任何线索如何进一步调试或问题可能是什么?

Any clues how to debug this further or what the problem might be?

推荐答案

添加

$ .support.cors = true;
$ .mobile.allowCrossDomainPages = true;

$.support.cors = true; $.mobile.allowCrossDomainPages = true;

用于向服务器提交ajax请求

for submitting ajax request to server

这篇关于IE 7中的JQuery Post请求失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆