Bug Tracker

Ticket #158 (closed enhancement: fixed)

Opened 8 years ago

Last modified 8 years ago

Native XMLHttp in IE

Reported by: john Owned by:
Priority: minor Milestone:
Component: ajax Version:
Keywords: Cc:
Blocking: Blocked by:

Description

If IE is used, create a wrapper for the XMLHttpRequest object if ( !XMLHttpRequest && ActiveXObject )

XMLHttpRequest = function(){

return new ActiveXObject(

navigator.userAgent.indexOf("MSIE 5") >= 0 ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP"

);

};

I assume that you didn't try that code, because it freaks out in IE (if memory serves me correctly - maybe it was Opera). I'll probably change it to this:

if ( jQuery.browser.msie && XMLHttpRequest == undefined )

Change History

comment:1 Changed 8 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN rev 246.

Note: See TracTickets for help on using tickets.