On 21 Mar, 21:06, Mike Williams <[email protected]> wrote:
> Your check() function has no return statement, so "if(check()==1)" will
> always fail, the value of check() will always be undefined.

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

> 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.
The reason why I used outside check() function is that I need a return
value depending on received data from the file checked on server. I
need it because it will be called from different places in the code.
So I will call check() in different situations. I cannot implement the
code of one test_GDU() function inside check() function because it
will be different in others.
I hope I didn;t throw anybody into confusion with my broken english.
Thank you for helping me!
--~--~---------~--~----~------------~-------~--~----~
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