Skip to main content

Bug Tracker

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 flesler comment:1

component: coreajax
need: PatchTest Case

Changed March 18, 2009 05:27PM UTC by brandon 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 brandon comment:3

Could you provide more details about your IE setup, specifically surrounding your security settings?

Changed May 05, 2009 12:51AM UTC by dmethvin comment:4

That might happen if the COM registration for

Microsoft.XMLHTTP
was 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 dmethvin comment:5

summary: Automation errorAjaxOptions.xhr Automation error on IE6

Changed December 10, 2009 03:59AM UTC by dmethvin comment:6

summary: AjaxOptions.xhr Automation error on IE6AjaxSettings.xhr Automation error on IE6

See related tickets #3623, #5338, #5529, when fixing this.

Changed January 05, 2010 03:58PM UTC by john comment:7

milestone: 1.2.41.4
resolution: → fixed
status: newclosed
version: 1.2.31.4a2