On Sep 1, 11:40 am, ylos <[EMAIL PROTECTED]> wrote:
> hi
> I am using the geonames.com to get the information about height ..This
> is the function i ama using
>
> GDownloadUrl("http://ws.geonames.org/srtm3?lat="+point.y
> +"&lng="+point.x+"", function(data, responseCode) {
> var data = data;
>
> It is running on the localhost but when i put it on real domain i got
> "permision denied problem"
>
> I know that there i a problem with XML but i am using json ..

Are you? What is returned from your url is simply a number, which
doesn't seem like JSON to me. I don't think it's going to be easy to
use just a number.

And is GDownloadUrl the right way to go about doing that? From the
docs: "This method is subject to cross-site scripting restrictions.
Note that this method uses the underlying XmlHttpRequest
implementation of the browser."

See http://www.hunlock.com/blogs/Mastering_JSON_(_JavaScript_Object_Notation_)
for a fairly comprehensive review of JSON, including retrieval from
third-party servers.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to