Modify ↓
Ticket #2051 (closed bug: fixed)
JSONP is always assumed
| Reported by: | john | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.3 |
| Component: | ajax | Version: | 1.2.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$.getJSON("http://foobar.com/getdata.cgi?type=stuff",
function (obj) {
$("#result").append(obj.toSource());
}
);
}
This should check to see if the JSONP style var=? exists somewhere, if not, pass it through to XHR and assume that the user knows what he's doing (since FF3 will have native cross domain handling).
Change History
comment:2 Changed 5 years ago by davidserduke
- Milestone changed from 1.2.2 to 1.2.3
Try jquery-1.2.3a.js to see if it fixes your problem.
http://groups.google.com/group/jquery-dev/browse_thread/thread/c0f2a57823cd8e07/ee44344446ec766a
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

this also leads to another problem in 1.2.2: since a script element being used to load json instead of XHR, the json is evaluated on load and nothing is passed to the callback function, thus making getJSON unusable.