Side navigation
#2849 closed bug (fixed)
Opened May 13, 2008 06:59AM UTC
Closed January 05, 2010 03:58PM UTC
Last modified January 05, 2010 04:37PM UTC
AjaxSettings.xhr Automation error on IE6
Reported by: | dingzhener | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | ajax | Version: | 1.4a2 |
Keywords: | Automation error | Cc: | |
Blocked by: | Blocking: |
Description
My test ie6 version is 6.0.2900.2180.xpsp_sp2_gdr.070227-2254
when i do this:
$.get("/IndexAction.do",function(txt){ alert(txt); }
ie thorw then Automation error
when i search in jquery-1.2.3,i found this
var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
then i modify it:
try { var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); } catch(e) { try { xml=new ActiveXObject("MSXML2.XMLHTTP"); } catch(e2) { try { xml=new ActiveXObject("MSXML3.XMLHTTP"); } catch(e3) { alert("It's all error"); } } }
Attachments (0)
Change History (8)
Changed May 15, 2008 02:44PM UTC by comment:1
component: | core → ajax |
---|---|
need: | Patch → Test Case |
Changed March 18, 2009 05:27PM UTC by comment:2
description: | My test ie6 version is 6.0.2900.2180.xpsp_sp2_gdr.070227-2254 \ \ when i do this: \ \ $.get("/IndexAction.do",function(txt){ \ alert(txt); \ } \ \ ie thorw then Automation error \ \ when i search in jquery-1.2.3,i found this \ \ var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); \ \ then i modify it: \ \ try { \ var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); \ } \ catch(e) { \ try \ { \ xml=new ActiveXObject("MSXML2.XMLHTTP"); \ } \ catch(e2) \ { \ try \ { \ xml=new ActiveXObject("MSXML3.XMLHTTP"); \ } \ catch(e3) \ { \ alert("It's all error"); \ } \ } \ } → My test ie6 version is 6.0.2900.2180.xpsp_sp2_gdr.070227-2254 \ \ when i do this: \ {{{ \ $.get("/IndexAction.do",function(txt){ \ alert(txt); \ } \ }}} \ ie thorw then Automation error \ \ when i search in jquery-1.2.3,i found this \ {{{ \ var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); \ }}} \ then i modify it: \ {{{ \ try { \ var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); \ } \ catch(e) { \ try \ { \ xml=new ActiveXObject("MSXML2.XMLHTTP"); \ } \ catch(e2) \ { \ try \ { \ xml=new ActiveXObject("MSXML3.XMLHTTP"); \ } \ catch(e3) \ { \ alert("It's all error"); \ } \ } \ } \ }}} |
---|
Changed March 18, 2009 05:28PM UTC by comment:3
Could you provide more details about your IE setup, specifically surrounding your security settings?
Changed May 05, 2009 12:51AM UTC by comment:4
That might happen if the COM registration for
Microsoft.XMLHTTPwas damaged or missing in the system registry. Any reasonably updated copy of Windows (e.g., XP Service Pack 2 or greater) should work fine with what is there. Since the original reporter mentioned IE6, it's likely the system isn't very well updated.
Changed December 10, 2009 03:39AM UTC by comment:5
summary: | Automation error → AjaxOptions.xhr Automation error on IE6 |
---|
Changed December 10, 2009 03:59AM UTC by comment:6
Changed January 05, 2010 03:58PM UTC by comment:7
milestone: | 1.2.4 → 1.4 |
---|---|
resolution: | → fixed |
status: | new → closed |
version: | 1.2.3 → 1.4a2 |