Ajax Status Values - 0?

A

ashore

Folks, I've looked but failed to find it; I'm seeing an
createXMLHTTPObject call return a status value of 0 under some
conditions, and I'd like very much to know what situation that
denotes.

Any information will be appreciated.
 
J

jorge

ashore said:
(...) I'm seeing an
createXMLHTTPObject call return a status value of 0 under some
conditions, and I'd like very much to know what situation that
denotes. (...)

You either read from a file:/// resource, or there was an http error
(e.g.: the network is down).

my $0.02
 
T

Thomas 'PointedEars' Lahn

ashore said:
Folks, I've looked but failed to find it;

Looked for *what*? said:
I'm seeing an createXMLHTTPObject call return a status value
of 0 under some conditions, and I'd like very much to know
what situation that denotes.

Since that is not a native call said:
Any information will be appreciated.

You're welcome.


PointedEars
 
J

Jorge

Jorge said:
Or: the request timed out (no response).

IOW: you get a 0 when there's no status to report, hehehe. Note that
completion is reported with readystate === 4, but status is whatever the
"other end" reports as status: nothing in the event of a network error
or no response, or a file:/// read from the local disk.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,100
Messages
2,570,635
Members
47,241
Latest member
HumbertoSt

Latest Threads

Top