Google Map Web Service working on local but not online
- by Julien
Hi all,
I have a problem with a Javascript request to the Google Map Api Web Service : if I have the HTML file on my computer it works, but it doesn't work online.
Here's the code :
url = 'http://maps.google.com/maps/api/geocode/json?address=Senador+Francisco+Quindimil+Y+Carabobo+Por+Carabobo,Ciudad+Autonoma+de+Buenos+Aires,Argentina&sensor=false';
$.get(url, function(data) {
$('#result').html(data);
alert('Load was performed.');
}, 'text');
This sample is just supposed to load the "data" in the "result" element. When it is offline, the "data" has text, but not when it is online.
Sample here : Online Web Service Test
Could one of you guys help ?
Thanks a lot !