GDownloadUrl is asynchronous. It returns immediately. Some time later 
the request completes and the callback function gets called.

Your check() function has no return statement, so "if(check()==1)" will 
always fail, the value of check() will always be undefined.

Your GDownloadUrl() callback function has lots of return statements, but 
the callback caller in the API doesn't take any notice of what values 
get returned.

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

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to