When I use the following code I get a 200 response for the call to "http://api.jquery.com/jquery.ajax/", but the error callback is fired. Please could someone let me know what I am doing wrong. Cheers.
$.ajax(
{
type: "GET",
url: "http://api.jquery.com/jquery.ajax/",
success: function( data ) {
$( "#geocodeData" ).html( data );
},
error: function(jqXHR, textStatus, errorThrown)
{
alert("error!");
}
});