Bug Tracker

Modify

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.