Cool, that's exactly what I was looking for!

Closure did the trick :)

I'm facing another problem now and will start a new thread on that.

-Arun

On Dec 20, 6:51 am, Rossko <[email protected]> wrote:
> 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 
> posthttp://groups.google.com/group/Google-Maps-API/browse_thread/thread/3...
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to