Thank you very much! It is now working :)

On Sat, Sep 19, 2009 at 12:18 PM, Andrew Leach <
[email protected]> wrote:

>
> On Sep 19, 11:27 am, Miguel Ribeiro <[email protected]>
> wrote:
> >
> > in firebug i get this error: «Access to restricted URI denied"  code:
> > "1012
> >
> > Line 0»
> >
> > the XML file is generated here:
> http://afac-online.org/site/maps/generateXML.php
> > the map is here:http://www.afac-online.org/beta/maps/
>
> Javascript doesn't allow access to files from different servers within
> a domain like that: your map url uses "www" and the data url doesn't.
>
> There are two solutions:
> - the preferred solution would be to use a relative url in the
> GDownloadUrl call, so you get "/site/maps/generateXML.php" (note the
> initial slash) -- that way, it doesn't matter what the base url is;
> - you could add a statement
>  document.domain = "afac-online.org"
> into the page to tell Javascript that any server in that domain is ok.
> See
> http://www.devguru.com/Technologies/ecmascript/quickref/doc_domain.html
>
> 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