Page is a not externally linkable
Fotiman - 4:48 pm on Dec 30, 2009 (gmt 0)
Note, in my second example, I used 'Microsoft.XMLHTTP'. That will use MSXML 3.0 if available, but will also allow for older versions to be used as well if MSXML 3.0 is not available. Another option would have been to use 'MSXML2.XMLHTTP.3.0' as in the previous example.
function getXHR() {
return window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('MSXML2.XMLHTTP.3.0');
}
This would ensure that ONLY the 3.0 version is used (which which will only apply to IE6).