A Difference I think I have noticed between IE and Firefox concerning XmlHttpRequest

I am going to do a little bit more research on this but I think I have found an implementation difference between IE 6, IE 7 and Firefox, centering around XmlHttpRequest.In both browsers, IE and Firefox, the developer can create a script that sends an HttpReqeust out via JavaScript. The following code is pretty standard:httpObj2.open(“POST”, url, false); // Asyn = true, Sync = falsehttpObj2.onreadystatechange = parseSearchResponse;httpObj2.setRequestHeader(“Connection”,”close”); httpObj2.setRequestHeader(“Content-Type”,”application/x-www-form-urlencoded”);httpObj2.send(“query=”+ escape(query)); The above code will send a request synchronosly (it will block at send).


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan

<p>I am going to do a little bit more research on this but I think I have found an implementation difference between IE 6, IE 7 and Firefox, centering around XmlHttpRequest.<p />In both browsers, IE and Firefox, the developer can create a script that sends an HttpReqeust out via JavaScript. The following code is pretty standard:<p />httpObj2.open("POST", url, false); // Asyn = true, Sync = falsehttpObj2.onreadystatechange = parseSearchResponse;httpObj2.setRequestHeader("Connection","close"); httpObj2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");httpObj2.send("query="+ escape(query)); <p />The above code will send a request synchronosly (it will block at send). Now Internet Explorer will still call the function attached to the onreadystatechange event after the send has finished blocking. Firefox on the otherhand will not call it.<p />Which is the correct behaviour. If anyone knows email me at <a href="mailto:paul.kinlan@gmail.com"><a href="mailto:paul.kinlan@gmail.com">paul.kinlan@gmail.com</a></a><p /></p>


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan


Print Share Comment Cite Upload Translate
APA
Paul Kinlan | Sciencx (2023-03-27T07:02:43+00:00) » A Difference I think I have noticed between IE and Firefox concerning XmlHttpRequest. Retrieved from https://www.scien.cx/2005/08/11/a-difference-i-think-i-have-noticed-between-ie-and-firefox-concerning-xmlhttprequest/.
MLA
" » A Difference I think I have noticed between IE and Firefox concerning XmlHttpRequest." Paul Kinlan | Sciencx - Thursday August 11, 2005, https://www.scien.cx/2005/08/11/a-difference-i-think-i-have-noticed-between-ie-and-firefox-concerning-xmlhttprequest/
HARVARD
Paul Kinlan | Sciencx Thursday August 11, 2005 » A Difference I think I have noticed between IE and Firefox concerning XmlHttpRequest., viewed 2023-03-27T07:02:43+00:00,<https://www.scien.cx/2005/08/11/a-difference-i-think-i-have-noticed-between-ie-and-firefox-concerning-xmlhttprequest/>
VANCOUVER
Paul Kinlan | Sciencx - » A Difference I think I have noticed between IE and Firefox concerning XmlHttpRequest. [Internet]. [Accessed 2023-03-27T07:02:43+00:00]. Available from: https://www.scien.cx/2005/08/11/a-difference-i-think-i-have-noticed-between-ie-and-firefox-concerning-xmlhttprequest/
CHICAGO
" » A Difference I think I have noticed between IE and Firefox concerning XmlHttpRequest." Paul Kinlan | Sciencx - Accessed 2023-03-27T07:02:43+00:00. https://www.scien.cx/2005/08/11/a-difference-i-think-i-have-noticed-between-ie-and-firefox-concerning-xmlhttprequest/
IEEE
" » A Difference I think I have noticed between IE and Firefox concerning XmlHttpRequest." Paul Kinlan | Sciencx [Online]. Available: https://www.scien.cx/2005/08/11/a-difference-i-think-i-have-noticed-between-ie-and-firefox-concerning-xmlhttprequest/. [Accessed: 2023-03-27T07:02:43+00:00]
rf:citation
» A Difference I think I have noticed between IE and Firefox concerning XmlHttpRequest | Paul Kinlan | Sciencx | https://www.scien.cx/2005/08/11/a-difference-i-think-i-have-noticed-between-ie-and-firefox-concerning-xmlhttprequest/ | 2023-03-27T07:02:43+00:00
https://github.com/addpipe/simple-recorderjs-demo