The reason that gdir.getSummaryHtml() is undefined is that you're using a different "gdir" variable.
In your loop, you create a new GDirections instance and store a reference to it in your "gdir" global variable. After you've done this a few dozen times, the first GDirections instance receives a reply and you call onGDirectionsLoad(point1,point2), but at that point "gdir" is a reference to the 24th GDirections instance, which hasn't yet received a reply. I don't know why your "620" errors aren't being reported. I'd expect almost all of your calls to fail with 620 because you're sending too many requests per second. It would also be a good idea to put all your HTML inside the <body> , to put your DOCTYPE before the <html>, to only have one <html> and one </html>. Severely invalid HTML can cause all sorts of strange effects. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
