Skip to main content

Bug Tracker

Side navigation

#8639 closed bug (invalid)

Opened March 25, 2011 11:57AM UTC

Closed March 28, 2011 01:36PM UTC

1.5.1 can not work in IE8/9 for Jsonp call.

Reported by: gmlan@126.com Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
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>

Attachments (0)
Change History (1)

Changed March 28, 2011 01:36PM UTC by jaubourg comment:1

resolution: → invalid
status: newclosed

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