Side navigation
#963 closed bug (fixed)
Opened February 15, 2007 03:13PM UTC
Closed April 28, 2007 03:51PM UTC
Last modified June 21, 2007 04:19AM UTC
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.
Attachments (0)
Change History (5)
Changed February 15, 2007 03:17PM UTC by comment:1
Changed February 15, 2007 04:12PM UTC by comment:2
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 };
Changed March 24, 2007 05:50PM UTC by comment:3
milestone: | → 1.1.3 |
---|---|
need: | → Test Case |
version: | → 1.1.2 |
Changed March 25, 2007 11:44AM UTC by comment:4
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"); };
Changed April 28, 2007 03:51PM UTC by comment:5
resolution: | → fixed |
---|---|
status: | new → closed |
This has been fixed in SVN (by joern).
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?