jQuery: The Write Less, Do More JavaScript Library

Ticket #2849 (new bug)

Opened 2 months ago

Last modified 2 months ago

Automation error

Reported by: dingzhener Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.4 Component: ajax
Version: 1.2.3 Keywords: Automation error
Cc: Needs: Test Case

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

Change History

Changed 2 months ago by flesler

  • need changed from Patch to Test Case
  • owner deleted
  • component changed from core to ajax
Note: See TracTickets for help on using tickets.