Tuesday, August 24, 2010

Re: Pushing XML data into a tab

> That problem is that when I call the tab "pointsparcours" after
> request.send(null);, the tab is empty with an "undefined" message.

Yes ; GXmlHttp is asynchronous.
Immediately after request.send(null) the request has gone off to the
server - btut that's all. The code doesn't wait. So
"pointsparcours" will still be empty. Some time later, the data
comes back, the callback function is run, and "pointsparcours" is
populated. If you need to do something with "pointsparcours", you
need to do it inside the callback fuction.
See
http://econym.org.uk/gmap/async.htm

--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate