#963 closed bug (fixed)
IE 7 can't request file:// via XHR
Reported by: | john | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1.3 |
Component: | ajax | Version: | 1.1.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This is a known bug: http://xhab.blogspot.com/2006/11/ie7-support-for-xmlhttprequest.html
Essentially, you have to never use the new XHR interface presented in IE7, and just use the old ActiveX stuff instead.
Change History (5)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Simplistically,this may do it: (from jquery-latest.js)
1887 if ( window.ActiveXObject || !window.XMLHttpRequest ) 1888 XMLHttpRequest = function(){ 1889 return new ActiveXObject("Microsoft.XMLHTTP"); 1890 };
comment:3 Changed 16 years ago by
Milestone: | → 1.1.3 |
---|---|
need: | → Test Case |
Version: | → 1.1.2 |
comment:4 Changed 16 years ago by
need: | Test Case → Review |
---|
Hard to write a test for this.
Assuming there is no browser that offers an ActiveXObject without supporting the XMLHTTP argument, this should do the trick:
if ( window.ActiveXObject ) XMLHttpRequest = function(){ return new ActiveXObject("Microsoft.XMLHTTP"); };
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been fixed in SVN (by joern).
Note: See
TracTickets for help on using
tickets.
John, would someone who had IE7 from Vista, for example, even have the old AciveX object? Could the code that loads the XHR stuff figure out if the url is a file: url or not and only try the old activex object if it needs to?