Bug Tracker

Modify

Ticket #8639 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by jaubourg

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.