I've tried hierarchical select with jquery_update 2.rc1. A few problems came up. You may already know about these incompatibilities, I thought Id let you know in case you didn't.

With javascript enabled, using FF3, there is a warning message that javascript is not enabled, it definitely is enabled. However, the widget doesn't degrade to a standard browser select box, it keeps the one level dropdown that is typical of a functioning hierarchal select. It is possible to attach something from the first level, later levels do not open up. Ive attached a screenshot. In ie7, after selecting a term (before pressing the add button) the entire widget disappears.

I tried the 5.x-2.2 branch, with this stable version space for the final level of the hierarchy is made (the "add" button moves to the right) but the selectbox for the final level does not appear.

Comments

andb’s picture

Whats happening with the 5.x-2.2 branch is that the last level of the hierarchy is displayed in the dropbox of its parent. In otherwords,
- I have 3 levels, and I select level 1.
- Level 1 selection shows the selection made and level 2 now shows up to the right.
- I select level 2.
- Level 2 selection shows up in its dropbox. Level 3 does not show up to the right. However, if I open the drop box for level 2, it is now populated by level 3.

If I have added a selection, this behavior already occurs on the first level.

wim leers’s picture

Status: Active » Closed (won't fix)

It won't become compatible, either. jQuery Update 2.0 ships with jQuery 1.2, but the animations in HS use jQuery Interface, which only works correctly with jQuery 1.1. Still following? :P

For this, and because *most* Drupal 5 modules rely on jQuery Update 1.x, I will *not* make the Drupal 5 version of HS compatible with jQuery 1.2. Unless somebody submits a patch that allows you to use either major version of jQuery Update.

andb’s picture

I found a workaround to the problem and am posting it in case anyone else runs into this problem. The issue with 5.x-2.2 is that the pretty motion of the next level, which starts at left: -100px; and opacity:0; are not being updated by the function. A quick fix is to force the proper final state via css:

.hierarchical-select-select
{ left:0 !important;
opacity:80 !important;}

Yes, the pretty animation is lost, but more importantly, it works. IMO this solution is better than monkeying around with code.

summit’s picture

Version: 5.x-3.x-dev » 6.x-3.x-dev
Status: Closed (won't fix) » Active

Hi,

I needed Jquery_update2 for a module. The Hierarchical Select didn't work immidiately.
Is there a possibility that HS will work with jquery update 2 please?
Will this patch, maybe tweaked.,.? work: http://drupal.org/node/513892
I set this option to D6 , active and bugreport if that's ok with you.

thanks in advance for going into this.
Greetings, Martijn

summit’s picture

Yes1 patch in http://drupal.org/node/513892 works for jquery_update 2.dev Confirmed.
May be good also to commit to D5 branch?
Greetings, Martijn

wim leers’s picture

Status: Active » Closed (fixed)

Your message is:
1) a mess
2) full of punctuation errors
3) full of capitalization errors
4) full of spelling errors
5) inaccurate/unclear

Please ensure that doesn't happen again, as it costs me more time. Next time I see a message like this, I'll be forced to ignore it.

The issue you are referring to is marked as fixed because that patch was committed. It doesn't make sense to commit it to D5 because 1) jQuery Update 2 for D5 is only jQuery 1.2.6 and 2) nobody has ever complained about this.

summit’s picture

Hi Wim, You catch me, sorry.
I wrote the message from my iphone in the train to let you know the patch worked great!
Sorry for the mess, will ask the train to stop when I type a message, or wait till I come home to do it more accurate. Sorry for the time-consuming message.
Greetings, Martijn