开发者

Ajax calls to encoded Internationalized domain names with jQuery 1.5 doesn't work in Internet Explorer?

开发者 https://www.devze.com 2023-02-13 22:26 出处:网络
Using jQuery 1.5 or 1.5.1, any ajax() calls to encoded Internationalized domain names (IDN) (like xn--bcher-kva.ch) seems to fail in Internet Explorer 8. It worked fine in jQuery 1.4.4 and also with 1

Using jQuery 1.5 or 1.5.1, any ajax() calls to encoded Internationalized domain names (IDN) (like xn--bcher-kva.ch) seems to fail in Internet Explorer 8. It worked fine in jQuery 1.4.4 and also with 1.5+ in any other browser than IE. It also works when using the unencoded domain name.

Can anyone with deeper knowle开发者_StackOverflow社区dge of jQuery and access to a IDN confirm or help with this? We only have access to one IDN, which belongs to a customer (which is why we unfortunately can't provide a proper test case). It would be great if someone else could confirm this before posting an official bug report.


You sure it's not a cache problem?

try to add:

var timestamp = new Date();

And add this to the end of your argument list

"&timestamp=" + timestamp.getTime();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号