Ticket #8639 (closed bug: invalid)
1.5.1 can not work in IE8/9 for Jsonp call.
| Reported by: | gmlan@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.5.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Below is the code, and the $.Ajax() method doesn't work in IE8/9, Opera11, can work in FF4,Chrome and Safari.
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml"> <head>
<title></title>
<script type="text/javascript" src=" http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.ajax({
url: ' http://www.geonames.org/postalCodeLookupJSON?postalcode=10504&country=US&callback=?', success: function (data) {
$('#test').html(data);
}
});
});
</script>
</head> <body> <input type="button" value="Click" /> <div id="test"></div> </body> </html>
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

You have to specify the dataType as "json" or "jsonp".