Side navigation
#6987 closed bug (duplicate)
Opened September 02, 2010 07:45AM UTC
Closed September 02, 2010 04:38PM UTC
Ajax() bug on IE7
Reported by: | kinming | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | ajax | Version: | 1.4.2 |
Keywords: | IE7 ajax | Cc: | |
Blocked by: | Blocking: |
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: "!==" )
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?