On Dec 8, 7:19 am, David Miao <[EMAIL PROTECTED]> wrote:
> Dear larry and all,
>
> I appreciate very much your valuable suggestions. Could you please
> give me more detail suggestions how to modify my code if using Json to
> call the xml data from the url "http://www.google.com/ig/api?
> weather=61801"? since I am not very familar with network stuff. With
> view source, you can see the code from
> http://abe-research.illinois.edu/Faculty/grift/Research/EBI/xhr-reque....
> I thank you again for your help. Have a good day!

Perhaps you should research what JSON is then (it is not xml).  If you
want to use XmlHttpRequest to get XML from that URL, you need a proxy.
http://www.google.com/search?hl=en&q=php+xml+proxy
http://www.google.com/search?hl=en&q=asp+xml+proxy

  -- Larry

>
> Sincerely,
>
> David
>
> On Dec 8, 12:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Dec 7, 7:10 pm, David Miao <[EMAIL PROTECTED]> wrote:> Dear Sir/Madam,
>
> > > I am asking for help to solve the question of Firefox cross site
> > > domain. I am trying to develop a simple program to show weather info
> > > on my map. I modified the program from Mr. Mike Williams' tutorial.
> > > The program works very well for IE but not for Firefox. With IE, the
> > > program shows three marks and weather infowindow when clicking the
> > > markers. I guess it is the problem of Firefox cross-site. I spent days
> > > and can not get it done. Any comments and suggestions are welcome.
>
> > > Link:http://abe-research.illinois.edu/Faculty/grift/Research/EBI/xhr-reque...
>
> > I get the same error in IE6 and FF:
> > FF:
> > Error: uncaught exception: [Exception... "Access to restricted URI
> > denied"  code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"
> > location: "http://maps.google.com/intl/en_us/mapfiles/139e/maps2.api/
> > main.js Line: 235"]
>
> > IE:
> > Line: 235
> > Error: Permission denied
>
> > due to this URL:
> > var url = "http://www.google.com/ig/api?weather=61801";;
>
> > You know what the problem is.  There is only one way to solve the
> > problem with XmlHttpRequest, a proxy.  There are other solutions if
> > you use JSON rather than XmlHttpRequest.
>
> >   -- Larry- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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