Commit 19398213 authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

using XDomainRequest as first option for IE browsers

parent 5bc59dcd
...@@ -121,11 +121,14 @@ ...@@ -121,11 +121,14 @@
var xhr = false; var xhr = false;
try { xhr = new window.XMLHttpRequest(); } try { xhr = new window.XMLHttpRequest(); }
catch (e1) { catch (e1) {
try { xhr = new window.ActiveXObject("Msxml2.XMLHTTP"); } try { xhr = new window.XDomainRequest(); }
catch (e2) { catch (e2) {
try { xhr = new window.ActiveXObject("Microsoft.XMLHTTP"); } try { xhr = new window.ActiveXObject("Msxml2.XMLHTTP"); }
catch (e3) { catch (e3) {
xhr = false; try { xhr = new window.ActiveXObject("Microsoft.XMLHTTP"); }
catch (e4) {
xhr = false;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment