realtimethrill
11-13-2006, 12:44 AM
Hi
At this w3schools example (http://www.w3schools.com/xml/tryit.asp?filename=try_xmlhttprequest_js2), they say that the method getAllResponseHeaders() will download the header of a file, not the file itself.
This seems wrong, as this method is called on the XMLHttpRequest object only when its readyState property is at 4 -which I assume means the file has already downloaded anyway?
Otherwise, does the transfer of the file actually occur only at the point of using things like xmlhttp.responseText, xmlhttp.responseXML or xmlhttp.getAllResponseHeaders() -that is, after the readyState property is detected as 4 ("complete")?
May sound pedantic, but seems like this could be important for very large files.
I'm wondering if I need to write them an angry email:)
Thanks for any help
At this w3schools example (http://www.w3schools.com/xml/tryit.asp?filename=try_xmlhttprequest_js2), they say that the method getAllResponseHeaders() will download the header of a file, not the file itself.
This seems wrong, as this method is called on the XMLHttpRequest object only when its readyState property is at 4 -which I assume means the file has already downloaded anyway?
Otherwise, does the transfer of the file actually occur only at the point of using things like xmlhttp.responseText, xmlhttp.responseXML or xmlhttp.getAllResponseHeaders() -that is, after the readyState property is detected as 4 ("complete")?
May sound pedantic, but seems like this could be important for very large files.
I'm wondering if I need to write them an angry email:)
Thanks for any help