Skip to main content

Bug Tracker

Side navigation

#6346 closed bug (invalid)

Opened March 24, 2010 06:53PM UTC

Closed December 02, 2010 08:08AM UTC

Last modified March 14, 2012 01:06AM UTC

conflict between jQuery 1.4 and Sarissa

Reported by: doug Owned by: doug
Priority: low Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: sarissa Cc:
Blocked by: Blocking:
Description
Attachments (0)
Change History (9)

Changed March 24, 2010 06:54PM UTC by doug comment:1

Changed March 24, 2010 07:38PM UTC by doug comment:2

This change to Sarissa seems to work.

// _SARISSA_XMLHTTP_PROGID = Sarissa.pickRecentProgID(["Msxml2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]);

_SARISSA_XMLHTTP_PROGID = Sarissa.pickRecentProgID(["MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]);

Any idea why Msxml2.XMLHTTP.6.0 would error?

Changed March 25, 2010 03:10AM UTC by dmethvin comment:3

So should I close this ticket?

Changed March 25, 2010 01:38PM UTC by doug comment:4

What is the difference between Msxml2.XMLHTTP.6.0 (which errors) and Microsoft.XMLHTTP?

The problem was introduced in jQuery 1.4 because the order of creating xhr was reversed.

What was the reason to reverse the order?

1.4

xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ?

function() {

return new window.XMLHttpRequest();

} :

function() {

try {

return new window.ActiveXObject("Microsoft.XMLHTTP");

} catch(e) {}

},

1.3

xhr: function() {

return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();

},

Changed October 24, 2010 03:53PM UTC by addyosmani comment:5

Changed November 02, 2010 01:36AM UTC by dmethvin comment:6

More info:

http://code.google.com/p/jstree/issues/detail?id=430#c6

This implies the reference to xhr.abort (not intended as a call) may actually cause a call for only *some* versions of the MS XMLHttpRequest ActiveX control. The try/catch around the replacement of the abort method may be masking the problem.

Do we have a specific version of IE where this is known to happen? Comment 2 says it happened on IE8 but standard $.ajax requests work fine on my test system. Seems like this will be impossible to fix without more info.

Changed November 11, 2010 01:52AM UTC by dmethvin comment:7

owner: → doug
status: newpending

We need to know the specific versions of the Microsoft XHR where this occurs in order to reproduce it.

Changed November 11, 2010 01:52AM UTC by dmethvin comment:8

keywords: sarissa needsreviewsarissa

Changed December 02, 2010 08:08AM UTC by trac-o-bot comment:9

resolution: → invalid
status: pendingclosed

Automatically closed due to 14 days of inactivity.