I use GDownloadUrl to retrieve a CSV file (not XML) and never get a
200 code, only 0 (zero).
I wrote this test snippet:
var r = new Array();
r[0] = 999;
// Get CSV file 'branches.txt'
GDownloadUrl("branches.txt",
function process_branch(doc, responseCode) {
r[r.length] = responseCode;
// Processing code for 'doc' here works just fine !
// Clearly HAS data.
} );
... but alerting array 'r' after a few seconds, shows that
the array 'r' never became 200; it contains just 2 elements, Viz:
999,0
What I'm trying to do is detect completion of the file retrieval but
not getting the stated 200 code worries me that the response-code is
not actually working, or at least not in the way I think it should.
API Version 2.125, IE7, WindowsXP
David Bytheway
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---