Bug Tracker

Modify

Ticket #6480 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

Create XHR object sometimes fails on IE7/8

Reported by: Mac_J Owned by:
Priority: Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: ajax XHR XMLHTTP XMLHttpRequest Cc:
Blocking: Blocked by:

Description

In some case, it dosn't work when you open web page at first. Must refresh the page.

I modified code at line 4952. It's work.

xhr: function() {

try {

return new ActiveXObject("Msxml2.XMLHTTP");

} catch (e) {

try {

return new ActiveXObject("Microsoft.XMLHTTP");

} catch (e2) {}

} if (!xmlHttp && typeof XMLHttpRequest != 'undefined')

return new XMLHttpRequest();

},

Change History

comment:1 Changed 3 years ago by Mac_J

It appeared in IE8 that I just test.

comment:2 Changed 3 years ago by Bradley

  • Keywords ajax added
  • Summary changed from JQUERY1.4.2 Create XHR Object BUG to jQuery 1.4.2 create XHR object sometimes fails on IE7/8
  • Milestone changed from 1.4.2 to 1.4.3

Test case available at dup #6586

comment:3 Changed 3 years ago by Bradley

  • Summary changed from jQuery 1.4.2 create XHR object sometimes fails on IE7/8 to Create XHR object sometimes fails on IE7/8

comment:4 Changed 3 years ago by Bradley

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #6298, has test case.

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.