Or to put it another way, The 'i' based loop runs and kicks off several geocoder requests. Your i appears to be global, can't tell from the snippet. When the loop finishes, i is incremented beyond the end of stories[]. Ages later, in javascript terms, a response comes back and the function is called now, processing with the now-invalid i value.
I'm a bit suspicious of using a named function in this context too .. see this post http://groups.google.com/group/Google-Maps-API/browse_thread/thread/3234e0d0b988563f/8a2632e609fba762?lnk=gst&q=anonymous+callback+function#8a2632e609fba762 cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
