Bug Tracker

Modify

Ticket #2849 (closed bug: fixed)

Opened 5 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

Description (last modified by brandon) (diff)

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

comment:1 Changed 5 years ago by flesler

  • need changed from Patch to Test Case
  • Component changed from core to ajax

comment:2 Changed 4 years ago by brandon

  • Description modified (diff)

comment:3 Changed 4 years ago by brandon

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

comment:4 Changed 4 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 3 years ago by dmethvin

  • Summary changed from Automation error to AjaxOptions.xhr Automation error on IE6

comment:6 Changed 3 years ago by dmethvin

  • Summary changed from AjaxOptions.xhr Automation error on IE6 to AjaxSettings.xhr Automation error on IE6

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

comment:7 Changed 3 years ago by john

  • Status changed from new to closed
  • Version changed from 1.2.3 to 1.4a2
  • Resolution set to fixed
  • Milestone changed from 1.2.4 to 1.4

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.