Hello, I am new to the world of AJAX and had a question that I couldn't find an answer to online, so I decided to ask here. My initial query relates to the snippet of code provided below.
function createXHR() {
var iexhr...;
iexhr = ["MSXML2.XMLHttp.7.0", "MSXML2.XMLHttp.6.0", "MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0", "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp", "MSXML3.XMLHttp", "Microsoft.XMLHttp"];
}
I am curious about the code above. As I was conducting research and exploring various samples of code online, I noticed that different versions of XMLHttpRequest were being used. I want to develop a cross-browser XHR solution and wondered whether it is necessary to include all these versions or if only one version would suffice?