I use jquery 1.6.4 and I just try to get city corresponding to a zipcode, so I want to use the Google Geocode API.
$(document).ready(function() {
$("#zipcode").keypress(function(){
$.getJSON(
"http://maps.googleapis.com/maps/api/geocode/json",
{
sensor: false,
address: "france"
},
function(data) {
alert(data.status);
}
);
});
});
But It doesn't work, firebug give me a status code 200 but not result. If I ask directly to the API, It work... So what I'm doing wrong ?