JQUERY AJAX不允许跨域在windows 7小工具

分类:Javascript| 发布:camnprbubuol| 查看: | 发表时间:2011/9/13

JQUERY AJAX DOES NOT ALLOW CROSS DOMAIN IN WINDOWS 7 GADGETS

Reported by: mike@… Owned by:  
Priority: low Milestone: 1.next
Component: ajax Version: 1.5
Keywords:   Cc:  
Blocking:   Blocked by:  

Description 

The new ajax module in jQuery does not allow cross domain scripting when running in the Windows 7 gadgets environment. It detects that cross domain scripting is not allowed in the Win 7 gadget environment. Cross domain scripting is allowed in the Win 7 gadget environment. If I hack the jQuery module

jQuery.support.cors = testXHR && ( "withCredentials" in testXHR );

to

jQuery.support.cors = true;

ajax then works in the Win 7 Gadget environment. This of course is not a fix but indicates the source of the issue. Haven’t checked but I’m wondering if .HTA apps have the same issue.

来源:http://bugs.jquery.com/ticket/8122

在调用的URL加上:jsoncallback=? 此问题是跨域问题造成的。

365据说看到好文章不转的人,服务器容易宕机
原创文章如转载,请注明:转载自郑州网建-前端开发 http://camnpr.com/
本文链接:http://camnpr.com/archives/428.html