xmlhttprequest always return with status code 0 for firefox
Posted
by Neo
on Stack Overflow
See other posts from Stack Overflow
or by Neo
Published on 2010-04-15T07:07:51Z
Indexed on
2010/04/15
7:13 UTC
Read the original article
Hit count: 625
hi,
I am trying to make asynchronous calls using xmlhttprequest object so it completely works fine in internet explorer but for firefox it wont work
a small code snippet of problem
if (req.readyState == 4) {
if (req.status == 200) //here firefox gives status code always 0 and for IE works fine
{
//read response
} else {
alert("There was a problem with the request.");
}
}
© Stack Overflow or respective owner