Reported by: | mike@… | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | ajax | Version: | 1.5 |
Keywords: | Cc: | ||
Blocking: | Blocked by: |
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=? 此问题是跨域问题造成的。