Wasn't it John who wrote: > >Sorry, I thought that would work. After some searching I found a place >that worked. Map link is below > >http://peekster.myhosting247.com/index.html
Geocoding is asynchronous. At the time of your first alert(), you've sent the geocode requests, but have not waited for the replies to come back. Executing that first alert() pauses the code until the user responds, allowing time for the geocode replies to come back, so the data has arrived by the time you perform the second alert(). If you don't understand the concept of asynchronous I/O read this: http://econym.org.uk/gmap/async.htm If you ever intend to use this code with more than a handful of markers, read this: http://econym.org.uk/gmap/geomulti.htm -- 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 -~----------~----~----~----~------~----~------~--~---
