jQuery 1.3 is almost upon us (rc2 is out already): http://groups.google.com/group/jquery-dev/browse_thread/thread/d1d688cdd...

I've tested it against most of the code I've written myself, and I've found no regressions or incompatibilities.

Has anyone tried it with Drupal, and are there plans to roll a release of jQuery Update for it?

Files: 

Comments

jQuery Update will have a release for jQuery 1.3. Once the new version of jQuery is out I'll test it (unless someone else wants to) across all of drupal 6. If there are any issues we will fix them and bundle the fixes with the module. I would expect jQuery Update to come out with a new release in the week or two following the official jQuery release.

Basically, I don't want to do testing more than once and I think jQuery 1.3 release should be tested across all of drupal core.

If you are looking to help test see http://groups.drupal.org/node/5974#javascript for areas that need to be tested.

jquery 1.3 was released today FYI

It would be super useful to have jquery 1.3 in Drupal ;)

Yeahh! Live Events! :)

Testing is underway. :)

subscribing

Subscribing

We have to wait for jQuery 1.3.1 to come out. There's a bug that's causing errors in drupal. The bug has already been fixed in jQuery and will be released in 1.3.1 in the next couple weeks. Details on the issue are available at http://dev.jquery.com/ticket/3837.

Actually, it's likely that 1.3.1 will be coming out within the next day or two.

Thanks for the update.

subscribe

Subscribing.

Subscribing

Subscribing

Subscribing

I've started testing, but after replacing the jQuery files in the replace with the 1.3.1 versions, I get this error on every page:

Error: uncaught exception: Syntax error, unrecognized expression: [@type='file']

I've tried tracing it down, but that's kinda hard, since Firefox doesn't give a line number for the error and even mighty Firebug doesn't have a clue.
I thought I had it nailed down to the admin menu module, but it persists after uninstalling that…

Disregard the previous error. I had a rather nasty case of #338630: Locale is unable to rebuild lost Javascript translation files, so after fixing that, everything (admin menu included) has been working.

@mikl the syntax of [@type='file'] no longer works in jQuery 1.3 for selectors. This is something that we will be dealing with in the update.

#19: Okay, the issue hasn't cropped up again, and my Drupal is humming along nicely. Apparently, there's a lot I didn't know about how Drupal uses jQuery.

jQuery 1.3.1 regression.... $(document).ready() fires after images load in ie. Details at http://dev.jquery.com/ticket/3988 and http://stackoverflow.com/questions/477463/jquery-is-waiting-for-images-t...

I'm going to wait until after this issue is fixed to release an updated version of the module because this regression is rather large and will cause a lot of support requests and head scratching. Unless someone can give me a good reason to jump on this now.

Personally I would prefer a new release made for jQuery 1.3 of jquery_update on Drupal.org. This would allow early adopters to see a "stable" release and jump on it and get a lot of testing done, and would allow production sites to continue to use the old stable version, which works peachy keen.

I'd suggest jquery_update DRUPAL-6--1-3-beta1 or DRUPAL-6--2-0-beta1 which includes jquery 1.3 .

I have a feeling there will be a lot of regression issues which might popup and jquery team has a history of releasing things a little too soon.

That's my take on it. I'll upgrade some of my sites to jQuery 1.3 once this becomes available.

@j0rd OK, I'll work on a beta release and put a big fat notice on it about the regression. No stable releases until jQuery 1.3 is stable though.

subscribing ...

mfer, let me know if you'd like any help with this as I'd be happy to look into any core js bugs that crop up with the new jQuery

@katbailey there are a number of core issues that pop up in switching to 1.3. Some of them have a solution on the core issue. One known issue is the dragging and dropping to rearrange things.

@mfer - wow, that's a strange one alright, those rows just disappear into the void! The elements seem to actually get removed from the DOM which seems impossible. I'll keep playing around with it in Firebug and see if I come up with anything but it looks like a tough one...

subscribe

Developers of JQuery starting from 1.3.1 version stopped to provide packed version because of compatibility and speed issues. So i think "packed" setting in settings form should be removed along with packed jquery package.

@cyberpunk removing the packed version is a separate issue from this one. No need to kill any kittens by putting all the eggs in one issue.

Removing the packed version has a bike shed conversation attached and I don't want to mess with an update to deal with that.

subscribing ...

subscribing. live() is awesome!

subscribing

subscribing ...

See http://drupal.org/node/350275#comment-1292494 and the comment after it regarding the tabledrag problem.

subscribing

Since it looks like it's close to working for Drupal 7, is anyone up for re-rolling a jQuery Update version that includes jQuery Form 2.21? I'd be glad to test it on my site as the standard Drupal 6 version of jQuery is causing some serious performance problems for my users, and it appears that the problem is fixed in jQuery 1.3.x. As in, I'd be glad to turn it on with a live site that gets thousands of users a day, just because sticking with the alternative seems worse -- I hate to know how many users I lose from "unresponsive script" errors...

I'm in the same boat as korvus, I really need this update.

StatusFileSize
new381.77 KB

Whew! I think I got everything in here... i.e. Rob Loach's and quicksketch's changes from http://drupal.org/node/350275#comment-1311426. Hopefully I haven't forgotten anything. Please test.

Status:Active» Needs review

Awesome work. I'll review this (hopefully) between sessions at drupalcon.

subscribing

@katbailey,

Patch doesn't seem to work on the latest dev version (which looks like the latest in Drupal CVS, though I am no master of the web CVS browser). Of course, maybe you are working from a different version and I should just wait for mfer to merge these changes in first...

$ tar xzf jquery_update-6.x-1.x-dev.tar.gz
$ cp jquery_update_358082_40.patch jquery_update/
$ cd jquery_update/
$ patch -p0 <jquery_update_358082_40.patch
patching file jquery_update.module
Hunk #1 FAILED at 16.
1 out of 1 hunk FAILED -- saving rejects to file jquery_update.module.rej
patching file replace/ahah.js
patching file replace/jquery.form.js
patching file replace/jquery.js
patching file replace/jquery.min.js
patching file replace/jquery.packed.js
patching file replace/tabledrag.js
patching file replace/teaser.js
$ cat jquery_update.module.rej
*************** define('JQUERY_UPDATE_REPLACE_PATH', dru
*** 16,23 ****
   */
  function jquery_update_get_replacements() {
    return array(
      'module' => array(
        'misc/farbtastic/farbtastic.js' => 'farbtastic.js',
      ),
    );
  }
--- 16,29 ----
   */
  function jquery_update_get_replacements() {
    return array(
+     'core' => array(
+       'misc/tabledrag.js' => 'tabledrag.js',
+     ),
      'module' => array(
+       'misc/ahah.js' => 'ahah.js',
        'misc/farbtastic/farbtastic.js' => 'farbtastic.js',
+       'misc/jquery.form.js' => 'jquery.form.js',
+       'misc/teaser.js' => 'teaser.js',
      ),
    );
  }

hmm, I rolled it against the 6--1 branch because HEAD is now Drupal 7, not sure what's happening here... @mfer, were you able to apply the patch?

Status:Needs review» Needs work

Just to let you all know... working on some strange issues in garland on FF in the blocks admin page. This is still in progress.

For anyone wondering.... I think the bugs are worked out. I hope to post an update this week.

subscribing

subscribing

subscribe

The DRUPAL-6--2 branch now holds the upgrade code to 1.3.2. This needs to be tested some more before I release the module. The dev snapshot should show up in the next 12 hours to get it from somewhere other than CVS.

Note... this is untested.

I have been testing this upgrade with Firefox and I have found this error in some pages using different modules:

[Exception... "'Syntax error, unrecognized expression: [@type=radio]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]

This other is more explicit using voting_api, fivestar and standard jquery.js (no minified):

[Exception... "'Syntax error, unrecognized expression: [@name=vote_average]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]
? in jquery.js?h@2864()jquery.js?h (línea 2869)
? in jquery.js?h@2762()jquery.js?h (línea 2762)
? in jquery.js?h@2665()jquery.js?h (línea 2693)
? in jquery.js?h@2464()jquery.js?h (línea 2468)
[Break on this error]

jcmarco, what modules were you running? If you know what script file this is happening in it would be apprenticed. They can update their code for it to work with both 1.2.6 and 1.3.2 by moving to the following:

jQuery 1.2.x:

$("a[@href*='admin/build/testing']").doSomething();

jQuery 1.2.6 and 1.3.x:

$("a[href*='admin/build/testing']").doSomething();

More detail at http://docs.jquery.com/Selectors/attributeHas#attribute

I have already checked the modules using that reference in two different testing/development servers.

On these modules I really found bugs when testing the pages:
Views 2.x (it was impossible to use the Views UI)
FiveStar

And I also found that modules with that kind of @ reference:
OG_Access
ThickBox
Lightbox2
CTools
Coder
SignUp
Inside WYSIWYG as plugins: TinyMCE (3.2.1 is wrong but 3.2.2 is right) & FCKEditor 2.6.4
PathAuto
Paging
FAQ
Community Tags

That should be probably be added to Coder module and Drupal module migration book in order to warn people about this incompatibility.

Just added an issue requesting this in coder... we are going to have some problems with jQuery 1.3.x for a bit it looks like.

Views has been fixed, one less:

http://drupal.org/node/366250

fivestar has been fixed as well. see #412126: Remove @ from selectors

Subscribing

subscribing

subscribing

subscribing.

Is there anything that can be done to help in any pending issue?

Would it be helpful to use a tag to identify issues that are preventing this update from being released?

subscribing

Version:6.x-1.x-dev» 6.x-2.x-dev

I've moved this to the 2.x branch. That's where the code actually lies.

@markus_petrux at this point the 2.x branch needs to be tested with other drupal modules and those modules need to know where they aren't working. The most common issue is with the usage of @ in the selectors.

Once more of the modules have been tested I'll create a release. If you want to go ahead and use the 2.x branch please do. It's been updated. I just don't want to create a release, have a few thousand people install it, and break a bunch of sites.

@mfer: Thank you very much! :-D

Installing 6.x-2.x-dev right now. I'll be using it for the projects I'm working on, and will report back any issue I may find. I'll also try to switch to jQuery UI 1.7, so that it fixes a few browser issues that I have to workaround in the meantime.

Just wanted to give some feedback after installing 6.x-2.x-dev with jQuery 1.3.2, and then, also upgrading to jquery_ui module to jQuery UI 1.7.1. Wow! Impressive! I'm really amazed by the performance improvements made to jQuery. And it makes you feel really comfortable to work with latest versions of these packages.

I don't think it's necessary to list all the modules we have installed, but we have a lot, including the major modules like views, cck, wysiwyg api, admin_menu, etc. No problem found, at least for the moment. Well, let me cross fingers, eh.

Thank you! :-D ...just wish there's not many issues and 6.x-2.x can go live soon.

I upgraded a site running over 120 modules, and haven't noticed any problems yet...

I tested again some modules after some updates on them, and I focus just in most used ones, as there are many ones with the @ issue around.

Views & FiveStar are working fine once they were fixed.

But:

Thickbox: #434660: Remove @ from selectors (it could be affecting as well to the thickbox login screen but I couldn't test it)

OG_Access !! #428824: Outdate jQuery selectors

Pathauto: node edit screen #434630: Remove @ from selectors

SignUp #434644: Remove @ from selectors

User Relationships UI (not tested yet, but it only affects to the popup sending button)

Paging (affecting to the configuration screen) #434652: Remove @ from selectors

Anyway I found some other modules that could have problems and I will test them:
> community tags
> faq
> lightbox2 (I almost forget this one)

@mfer I am using your description for the issues you open before because you explain it better than me.

The tabbed block module appears to be working just fine, as does FAQ and faq_ask for me.

subscribing.

The date_popup widget that comes with date module seems to look weird after the upgrade to jQuery 1.3.2 + jQuery UI 1.7.1. Anyone else?

@markus_petrux I was checking that module as well because I found some issues there, and finally everything was related to other module I patched/reported as OG_Access or pathauto ( I don't remember which one). Please check the patches I reported to that modules and test them, this way you could validate them at the same time.
Other question could be related with the jQuery UI that I am not testing at this time, because date popup says that if the jQuery UI exists it doesn't load its plugin, and there could be some conflict with that.

More testing, more patches, more issue reporting:

Paging: confirmed that it is affecting to node view and admin screen, reported patches for both js
#434652: Remove @ from selectors

Community Tags: bugs found, patch released and report to module issue queue:
#436446: Remove @ from selectors

User Relationships UI: reported issue and patch:
#436448: Remove @ from selectors

Please check the patches reported and validate them on each module issue list

Date is (and it was) using ui.datepicker from jQuery UI libraries in jquery_ui module. It worked ok before upgrading, with jQuery 1.2.6 and jQuery UI 1.5.3, but not now with 1.3.2 and 1.7.1 respectively.

Date module is using other components of its own: custom CSS classes for ui.datepicker and the jQuery Time Entry plugin. Maybe the problem lives here since standalone ui.datepicker from jQuery UI work correctly. It doesn't when used from Date popup widgets, however.

I checked ui.datepicker classes provided by Date and still not able to see where could be the problem, if it is there.

Also, checked the homepage of jQuery Date Entry plugin, and here there's something about upgrading from jQuery 1.2.6 up to 1.3.x:

http://keith-wood.name/timeEntry.html

I could open an issue to the Date project, but I first wanted to comment the issue here, as it maybe related to something else particular to my configuration.

Edit: I just opened a feature request to the Date module: #436490: Add support for jQuery update to 1.3.x and jQuery UI 1.7.x

subscribing

Status Update

FIXED:

Paging: Fixed with #434652: Remove @ from selectors
User Relationships UI: Fixed with #436448: Remove @ from selectors
Thickbox: Fixed with #434660: Remove @ from selectors
Pathauto: Fixed with #434630: Remove @ from selectors
SignUp: Fixed with #434644: Remove @ from selectors
views: Fixed with #366250: jQuery 1.3.x and Views UI
fivestar: Fixed with #412126: Remove @ from selectors

PENDING:

OG_Access: Pending #428824: Outdate jQuery selectors
Community Tags: Pending with #436446: Remove @ from selectors
Coder: Updated and patch issued with #412626: Detect @ in a[@href*= for jQuery
LightBox2: Reported in #411162: Problem with 'automatic image URL re-formatting' with jQuery 1.3.x
FAQ: Pending in #438148: Remove @ from selectors

KNOWN ISSUES:

--
--

I think add to pending the Ajax module, issue #439540 (just posted by me). I had to do some massaging to get it working, but it appears to be mostly ready.

Another module affected by @ is taxonomy manager. I just created a bug report using jcmarco's "template" :)

#443830: Remove @ from selectors

Will provide a patch for that in a few minutes.

Edit: patch attached to that issue.

IMHO, with #452376: jQuery 1.3.x (Problem replacing modified version of tabledrag.js) I think that the this modules could be considered good for a release.
The rest of issues in any other modules, like the ones considered in this issue, are related with a wrong use of a deprecated reference,
and probably, a good entry in the module migration book would help to ease the process of migration, and helping people discovering all
the possible issues related with the @ reference in other modules.

New reported issue with menu type configuration in Ctools/Panels

#452700: Remove @ from selectors

The same problem here:

[Exception... "'Syntax error, unrecognized expression: [@type='file']' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
[Break on this error] undefined
Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible.

Reverting to 1.2.6 works.

@kenorb at #81: That doesn't help much, I think you should tell us which is the module that is causing that error. Probably, something that uses jQuery in that module is using the deprecated selector [@type='file'], and that should be fixed to look like [type='file'] (without the @), but your report doesn't help much to know where this selector is being used.

I didn't know that's working in this way.
I've found:

$("input[@type='file']", context).change( function() {

in filefield.js (filefield module)
Dev version of this file have a little different line:
  $("input[type='file'][accept]", context).change( function() {

I'll test dev version of module and check if this will help.
Thanks in advance.

So far I manually replaced the 1.2.6 files (while keeping backups), ran new jquery update in D6 w/ no problems. so far

subscribing

Subscribing

subscribing

subscribing

subscribing

subscribing

A dumb question for you experts but what do I need to do to use jquery 1.3 with Drupal 6?
Thanks - :-)

subscribing and testing

quindio: install this module (See: #92)

sunbscribing for updates. Thanks

subscribing for updates. Thanks

me too (subscribing).

subscribe

Project:jQuery Update» Extra Voting Forms
Version:6.x-2.x-dev» 6.x-1.x-dev
Component:Code» User interface
Category:feature» bug
Priority:Normal» Critical

Erro in the form received when trying to vote in IE with registered user.

Project:Extra Voting Forms» jQuery Update
Version:6.x-1.x-dev» 6.x-2.x-dev
Component:User interface» Code
Category:bug» feature
Priority:Critical» Normal

Setting back. There is an issue about this a extra voting forms (and I noticed that you found it also).

subscribing

subscribing

subscribing

subscribing

this is probably common knowledge but jquery 1.3.2 completely screws up Panels.

subscribing

subscribing

subscribing
need to use the "live" function

So I've installed the module, but Drupal is still loading jQuery 1.2.6. How do I get it to load 1.3.*?

@ericwindham: Simply install jquery_update 6.x-2.x-dev.

I found another xpath selector in version 6.x-1.5 of the External new tab module (http://drupal.org/project/external). I have added an issue to the project at #666980: xpath selector in external.js breaks sites with current jquery version to notify the maintainer.

Edit: the issue has been fixed by mccrittenden as of version 6.x-1.6
Edit: jquery 1.3 and up needs 6.x-2.x. Use the dev version. Do not use with Autosave installed. (I'm trying to get a patch in.)

Subscribing

Subscribing

Are there any plans on release a stable 6.x-2.x for 1.3.x?

any progress on this?

Yes, there are plans to release. Sometime soon actually. There are a few planned updates first.

Subscribing

Subscribing

PS. I just installed jquery_update-6.x-2.x-dev which means jquery 1.3 on a development branch of a site. I would've liked to use $.isArray(), but alas lightbox2 seems to have a problem with it. Suddenly ALL LINKS open the light box which always reopens when trying to close it. I guess I will have to do without isArray() for now.

@bird-cage, I don't get that problem with lightbox.

I believe the last major bug is the table drag bug?

I don't think anyone has a fix for that yet...

subscribe

subscribing

jquery.form.js was updated.
This one included in last jquery_update DEV release is old.
See : http://jquery.malsup.com/form/#download
Download here : http://github.com/malsup/form/raw/master/jquery.form.js

This issue title and description seem to need updating or closing. I just installed the 6.x release of the module, and it enables jQuery 1.3, but this issue suggests that's not ready yet. If there are compatibility issues with other modules, shouldn't those go in separate issues to keep the status clear?

btw its possible to use different version of jquery in one page. you can use a newer version for your own scripts. see http://docs.jquery.com/Using_jQuery_with_Other_Libraries

Please, update jquery.form.js, as srobert72 said, new version was released. Current outdated version breaks file upload in IMCE on Opera 10. With latest version (2.43) upload works fine.

StatusFileSize
new17.9 KB

This is the patch to update jquery.form.js to last available version 2.43 (It is also minified)
In D7 (now with jQuery 1.4.2) the jquery.form.js is 2.36 (minified btw)
In the jQuery Update module is 2.21, and it is replacing the offical D6 version 2.01

It seems not breaking anything and fixing issues with Safari and IE8.

Issue tags:+jquery form update

+1

Status:Needs work» Fixed

jQuery 1.3.2 should be working now in jquery update 6.x-2.x-dev. If there are still other issues please file new issues.

I committed the update to jquery.form.js 2.43. Thanks. Now we just need to get the forum update into D7 core.

Status:Fixed» Closed (fixed)
Issue tags:-jQuery, -JavaScript, -jquery form update

Automatically closed -- issue fixed for 2 weeks with no activity.