Any idea why this does not work in IE9 but does in Chrome and Firefox?
$.get("http://nominatim.openstreetmap.org/search", { format: "json", q: val, polygon: 0, addressdetails: 1 })
.done(function(results) {
if (!results) return;
// do something
});
I know IE8 wont support it but i thought 9 would?
Update:
New code
$.ajax({
type: 'GET',
url: "http://nominatim.openstreetmap.org/reverse",
data: { format: "json", lat: lat, lon: lng, zoom: 18, addressdetails: 1 },
error: function(xhr, status, error) {
myTable.fnUpdate("Not supported by browser", aPos[0], 4);
},
success: function(data){
myTable.fnUpdate(data.display_name, aPos[0], 4);
}
});
At least with this i can show "Not supported by browser" rather than nothing happening, are there no tricks to make it work in IE9?
Update 2: This seems to work in FF, Chrome and IE9. http://jsfiddle.net/BXhkm/4/ But when i add the same code to my app the first request is successfull, then i get Error: data was not called.