Bug Tracker

Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#2849 closed bug (fixed)

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 (last modified by brandon)

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");
}
}	
}

Change History (8)

comment:1 Changed 12 years ago by flesler

Component: coreajax
need: PatchTest Case

comment:2 Changed 11 years ago by brandon

Description: modified (diff)

comment:3 Changed 11 years ago by brandon

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

comment:4 Changed 11 years ago by dmethvin

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.

comment:5 Changed 10 years ago by dmethvin

Summary: Automation errorAjaxOptions.xhr Automation error on IE6

comment:6 Changed 10 years ago by dmethvin

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

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

comment:7 Changed 10 years ago by john

Milestone: 1.2.41.4
Resolution: fixed
Status: newclosed
Version: 1.2.31.4a2
Note: See TracTickets for help on using tickets.