Bug Tracker

Modify

Ticket #6987 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

Ajax() bug on IE7

Reported by: kinming Owned by:
Priority: Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: IE7 ajax Cc:
Blocking: Blocked by:

Description

We used an modified version of jquery.autocomplete. After upgrade jquery from 1.2.6 to 1.4.2, autocomplete didn't work any more. As I dug deep, I found that the latest jquery have used a different way to create the XMLHTTPREQUEST. And yes, I noticed that you deal with IE7 specially. But in our IE7 browsers, this does NOT work properly. Both CHS and EN versions are failed.

BTW, are you sure this is right ? 'window.location.protocol !== "file:" ' (jquery-1.4.2.js, line 4952, look at this operator: "!==" )

Change History

comment:1 Changed 4 years ago by kinming

Origin line 4952 is:

window.XMLHttpRequest && (window.location.protocol != "file:"
!window.ActiveXObject)

When I changed it into to :

window.XMLHttpRequest && !window.ActiveXObject

The ajax() works again. Both in IE6/7/8&Firefox. It looks like XMLHTTPREQUEST in IE7 is buggy. Maybe we should try not to use it?

comment:2 Changed 4 years ago by dmethvin

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

Dup of #6298.

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.