Google Map Web Service working on local but not online
Posted
by Julien
on Stack Overflow
See other posts from Stack Overflow
or by Julien
Published on 2010-06-09T19:17:38Z
Indexed on
2010/06/09
19:22 UTC
Read the original article
Hit count: 206
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 !
© Stack Overflow or respective owner