> Please take a look at:http://www.minuta8.pl/testy/test.htm
Have you noticed the "smthng went wrong" prompt appears BEFORE the
"checked: 200" prompt?
GDownloadUrl is asynchronous -
http://econym.org.uk/gmap/async.htm
Your test_GDU() function calls your check() function.
GDownloadUrl is started.
BUT the javascript DOESN'T wait for it to return data; execution
continues, check() returns.
test_GDU looks at the response code and alerts for an error.
Some time after all that has happened, the data comes back from the
server.
Now the GDownloadUrl callback function runs, and alerts for a good
response code.
It's all working exactly like it should, just not quite how you
thought :)
If you want to do any checks or handling of the data, you must do it
the callback function.
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
-~----------~----~----~----~------~----~------~--~---