> Actually it has at the end of the function and it still doesn't
> work :)

No it doesn't; you have 'returns' inside your callback function.  You
have no explicit 'return' in your check() function.  Remember that the
callback doesn't run until after the data has arrived.  Long, long
before that, the check() function will have completed (without of
course running any of the callback code).

> > What you have to do is call your "it's OK" or "smthng went wrong" code
> > from inside the callback function.
>
> But I cannot do this.

Everybody else manages it, give it a little more thought.   It isn't
easy thinking about asynchronous functions!

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