Probably every web developer is familiar with this pattern:
var xmlHttp = null;
if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
else
{
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject('MSXML2.XMLHTTP');
}
}
But the question is, if several versions of MSXML are available on the client PC (say, 3.0, 5.0, 6.0), one of them will be selected by calling MSXML2.XMLHTTP (the suffix of the version is not indicated at the end)? Will it be the last or not?
And a side question - is it possible to check which version was selected?
source
share