views:

445

answers:

1

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."); } }

A: 

issue resolved its due to misunderstanding about firefox with status code on making XMLHttpRequest as non-HTTP requests. So for that it returns status code as 0

Neo