Skip to content

Commit

Permalink
XMLHttpRequest instance generation modded to work on IE6 too
Browse files Browse the repository at this point in the history
  • Loading branch information
choan committed Oct 7, 2008
1 parent 7c74c6a commit e452fef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ajax.js
Expand Up @@ -30,7 +30,7 @@ JsUnitTest.ajax = function( options ) {
};

// Create the request object
var xml = new XMLHttpRequest();
var xml = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();

// Open the asynchronous POST request
xml.open(options.type, options.url, true);
Expand Down Expand Up @@ -118,5 +118,4 @@ JsUnitTest.ajax = function( options ) {
return data;
}

}

};

0 comments on commit e452fef

Please sign in to comment.