So here is the code I have:
$.getJSON("http:\/\/tinygeocoder.com\/create-api.php?g=" + lat + "," + lng + "&callback=?", function(data) {
alert(data);};
and it’s working fine in chrome and safari… but fails in mobile safari. Here is the error i’m getting:
http://tinygeocoder.com/create-api.php?g=39.67997936,-104.(removed for space)&callback=jsonp1302553994489
SyntaxError: Parse error
Anyone have any ideas?
When I try to browse to that URL, I get this response back:
As this is not JSON, it causes your parsing error.