Thank you all for the replies. It really helped me. Thanks.
On Apr 25, 8:18 pm, "[email protected]" <[email protected]> wrote: > On Apr 25, 1:19 am,TechIT<[email protected]> wrote: > > > > > Hi, > > I implemented the MarkerManager sample from google's website (setting > > up weather icons marker). It works fine with my XML file. I loaded the > > XML file directly, i.e., without using GDownloadURL. > > > However, when I changed the code to load the same xml file through > > GDownloadURL, the markers dont get displayed. I get an error "length > > is null or not an object". This error occurs when the below line is > > called: > > > mgr.addMarkers(getXMLData(10), 3); > > > I noticed that even before the getXMLData() function is completely > > executed, the error occurs on the above line. > > > I suspect it has something to do with asynchronous code execution of > > GDownloadURL. Is it so? > > Yes. > > > What could be an alternative to make these two work synchronously? > > You can use GXmlHttp (which is the underlying function used by > GDownloadUrl) and make it work synchronously (I wouldn't think that > would be desirable..) > > You could put all your code that depends on the results in the > callback function. > > You could post a link so we could say for sure... > > -- 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 -~----------~----~----~----~------~----~------~--~---
