> 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 [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