The jQuery library (version 1.0.4) shipped with Drupal 5.x version doesn't work correctly with Firefox browser. This is due to a bug in Firefox.
The bug arises when you try to submit Ajax requests in synchronous mode.
The problem is that Firefox doesn't fire the onreadystate event and in this manner the function declared on success property won't be executed.

See the attachment for a patch and here : http://www.speedtech.it/drupal-jquery-ajax-synchronous
for already patched files.

Roberto

CommentFileSizeAuthor
jquery-1.0.4.patch532 bytesRoberto Gerola

Comments

darren oh’s picture

Priority: Normal » Critical
Status: Active » Reviewed & tested by the community

Thanks! This has finally made Chat Room alerts stable.

drumm’s picture

Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

I would generally like to leave the jQuery code to the jQuery developers; but we are sticking with their 1.0.x release series and I expect 1.0.4 will be the last there. I did briefly look at jQuery 1.2.1 to see if I could find evidence of this patch, and I think I did. It would be good to see the jQuery and/or Firefox bugs in their trackers.

dries’s picture

I'd stick with the jQuery 1.0.x series in Drupal 5. I'd report this 'upstream' and request that the jQuery team releases a jQuery 1.0.5 release. If the official word is that there won't be a jQuery 1.0.5 release, we might consider patching our version. (Upgrading to jQuery 1.1 is not an option for the Drupal 5 release series.)

darren oh’s picture

I couldn't find any mention of this bug on the jQuery site. Also, my problem didn't turn out to be related.

Roberto Gerola’s picture

Sorry, forgot link to Firefox's BugZilla :

https://bugzilla.mozilla.org/show_bug.cgi?id=313646

If Firebug extension is active the bug doesn't arise.

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Due to the age of the last comment on this issue and due to the fact that D5 is no longer supported, I am closing this issue.