On Dec 4, 10:20 am, hitesh kumar yadav <[email protected]> wrote: > google.maps.DownloadUrl("URL", function(data, responseCode) { > }); > > where URL is the link to the KML file being hosted on another server. > > now for firefox I get a response code of 0 and no data.
Firefox's implementation of cross-site restrictions is stricter than IE's. In particular, IE will allow access to remote URLs from local files, whereas Firefox will not. Everything should work fine if your page AND the KML file are on the same webserver (not your local disk). See the documentation too: "Notice that, since the XmlHttpRequest object is used to execute the request, it is subject to the same- origin restriction of cross-site scripting, i.e. the URL must refer to the same server as the URL of the current document" 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.
