quote:
Originally posted by CookieRevised
I just was looking around too, and found roughly the same thing. However, it should be done with readyState 3, not with 4....
That's with a full GET request with the whole file, my code is sending a HEAD request which doesn't download the whole file but just the headers.
I tried it in readyState 3 just in case and it throws a very descriptive "Unspecified error" It seems the response (getResponseHeader, responseText etc.) can't be accessed until the request is complete?
-----
Edit: found this:
quote:
Originally posted by http://msdn.microsoft.com/en-us/library/ms534361(VS.85).aspx
3 (Receiving) Some data has been received. responseText is not available. responseBody is not available.
4 (Loaded) All the data has been received. responseText is available. responseBody is available.
The remarks also provide a couple of possibilities that could be used, I shall experiment further