I am finding different results between IE6 and Firefox 7. I am thinking the differences might not be so much with different browsers as much of IE6 is using an ActiveX control and everything else is using XMLHttpRequest. I believe XMLHttpRequest is not native until IE7.
Seems to be false in IE6 ActiveXObject and true Firefox 7. But I can't seem to find documention.
// one of these lines gets called - the first successful one
obj = new XMLHttpRequest();
obj = new ActiveXObject("Msxml2.XMLHTTP.3.0");
obj = new ActiveXObject("Msxml2.XMLHTTP");
obj = new ActiveXObject("Microsoft.XMLHTTP");
// now later the code makes this call
obj.open("GET",url);
// notice how the third parameter [async] is not assigned
My question is what is the default value of the async property in different scenarios described above?
Defaults to true. See the docs.
Also, the way you are creating the XMLHttpRequest object is wrong. The obj variable will get overwritten for every statement. See this for a proper way to do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With