Skip to main content

Bug Tracker

Side navigation

#6197 closed bug (invalid)

Opened March 02, 2010 05:13AM UTC

Closed November 22, 2010 06:12AM UTC

Last modified March 15, 2012 10:56AM UTC

Ajax is not working in IE8 but working in firefox

Reported by: Ran Owned by:
Priority: undecided Milestone:
Component: ajax Version: 1.4.2
Keywords: IE Firefox browser error Cc:
Blocked by: Blocking:

Version: 1.4.2

I am trying to fire an Ajax call and the code works in firefox but failed in IE8(I didn't try IE7 or previous version). I used all the possible method like $.get, $.ajax,,$.getJSON, but all the same. I traced into the js file and add an alert at line 5260. "alert(e)". It tells me that the XMLHttpRequest can not be send before open method. I debuged backward and found the open method been called in both browers. It's very strange for me. So I gave this temporary solution: add another open before send

The code like this:

try {, s.url, s.async);

xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? : null );

} catch(e) {

jQuery.handleError(s, xhr, null, e);

Fire the complete handlers




Hope there will be another good solution or someone can tell me why I am failed here?That would be very appreciated!


Attachments (2)
Change History (6)

Changed March 02, 2010 09:31PM UTC by john comment:1

resolution: → invalid
status: newclosed

If you have a more-complete test case I would definitely appreciate it - it's a bit hard to determine what may be going wrong with these details. Please re-open if you have a test case that we may view.

Changed May 28, 2010 09:23AM UTC by buurd comment:2

resolution: invalid
status: closedreopened

I have the same problem. The call works in Firefox and Chrome but not in IE8. When trying to debug the problem, the only thing I manage to find out is that the callback doesn't occur.

Se function loadPropertiesFromSettings in order to modify the html-file to suite your setup.

Changed November 12, 2010 02:40AM UTC by snover comment:3

milestone: 1.4.3

Resetting milestone to future.

Changed November 22, 2010 06:12AM UTC by snover comment:4

priority: → undecided
resolution: → invalid
status: reopenedclosed

No valid testcase still.

Changed November 26, 2010 12:04PM UTC by comment:5

We had the same problem. It was caused by sarissa (, used by Java Richfaces), which overrides window.XMLHttpRequest in IE8:

return new ActiveXObject(_SARISSA_XMLHTTP_PROGID);}

jQuery (1.4.2) then uses "jQuery.ajaxSettings.xhr = function() { return new window.XMLHttpRequest()};", which somehow causes the mentioned problems...

Changed November 26, 2010 03:09PM UTC by rwaldron comment:6

There is still no valid test case here.

With regard to the evidence of conflict with a library that is overwriting XMLHttpRequest, jQuery is not accountable for the behaviour of 3rd party scripts.