On Dec 6, 11:27 am, albert <[email protected]> wrote: > Hi All, > > I'm trying to create an array of distances using parameters from a > database. The problem I have is with the loop. I only seem to retrieve > the last value. Can anyone help me? Here is the code:
1. Please read the posting guidelines: http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines and: http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical 2. This is almost a FAQ. GDirections is asynchronous. If you are using the same object to make multiple requests, you need to wait for the results to come back before making subsequent requests. Mike Williams' explanation from his tutorial: Part 2 Asynchronous I/O http://econym.org.uk/gmap/async.htm -- Larry -- 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.
