XMLHttpRequest is always calling “load” event listener, even when response has error status?

This setup should work better for your needs: var req = new XMLHttpRequest(); req. Open('POST', '/upload_image'); req. Onreadystatechange = function (aEvt) { if (req.

ReadyState == 4) { if(req. Status == 200) alert(req. ResponseText); else alert("Error loading page\n"); } }; req.

Send(formData).

Nice, this works! Still curious though... why isn't the "error" callback ever invoked in my setup above? – simmbot Jul 21 at 21:42 I have had issues with chrome just returning ajax responses very strange.

I had a get that was 200 but was never completed. – Mike Stewart Jul 22 at 1:15.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions