[whatwg] XMLHttpRequest for missing file

Kristof Zelechovski giecrilj at stegny.2a.pl
Fri Jun 29 04:42:30 PDT 2007


IE7 does not allow XML-HTTP-Requesting a local file whether it exists or
not.  You can use Scripting.FileSystemObject for that purpose.
Chris

-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Geoffrey Garen
Sent: Friday, June 29, 2007 6:39 AM
To: whatwg at whatwg.org
Subject: [whatwg] XMLHttpRequest for missing file

The XMLHttpRequest spec has this to say about failed loads:

<snip>
The NETWORK_ERR exception is thrown when a network error occurs in  
synchronous requests.
...
In case of network errors

In case of DNS errors or other type of networks run the following set  
of steps.This does not include HTTP responses that indicate some type  
of error, such as HTTP status code 410.
</snip>

What should happen with failed file:/// URL loads? For example, what  
if the file doesn't exist?

Thanks,
Geoff




More information about the whatwg mailing list