Using AJAX to improve usability
Eugef - November 27, 2007 - 15:29
| Project: | CCK Taxonomy Super Select Ultra |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | critical |
| Assigned: | Eugef |
| Status: | active |
Jump to:
Description
I use a hierarchical vocabulary with more than 1000 terms. And when i create a new node i must wait when all this 1000 items are loaded to cck_ssu field. It takes a long time.
It would be better to make an AJAX requests in such order
1. First displays only 1st level terms
2. When i click on 1st level term - AJAX load its 2nd level terms
3. and so on
PS. I can help you to make this functionality if you give me a goood example of using AJAX in drupal forms and exlain how to integate AJAX with SSU.

#1
That is a good idea. I'm starting today to go through my modules and fix all of the bugs that have been reported. If I have time, I'll start fulfilling feature requests. Meanwhile, look into jQuery. Also see the jQuery update module, the jQuery interface module, and the jQuery form module. As I recall, there are AJAXy functions built-in that can be made use of and the code turns out very small. I am planning on upgrading many of my modules in such a way.
As for specifics, I haven't done any Drupal AJAX yet myself, but I am able to understand and review related code. So please feel free to try and tackle this issue. It is not at the top of my list for most pressing issues.
Um, the only AJAX I know of in core is the user search box. I don't recall which page it's on, but it has a little spinner inside the box when you type. There are probably several modules which use AJAX, but you should restrict your search to those that use jQuery as that's the official Drupal way. I have a module not based on jQuery that I'm going to re-work. Actually, it uses the activeselect module, which I haven't checked on in a while. If the author of that has updated his code to be jQuery, then perhaps I won't need to rework my code...
#2
Ok, i will take a look on a jQuery module and how it implements AJAX requests.
Maybe in a week or two I give you a first version of the patch :)
P.S. When are you planning to make a new release of SSU?
It would be better to make my patch to newer version.
#3
Eugef, please also take a look at this http://drupal.org/node/224530
#4
I'm just about finished with the next release. The queue should be empty except for this issue and one other when I am done. Once this release goes out, I will evaluate what is required for AJAXy goodness.
#5
Hi Ryan,
Thanks for the 1.1 version it is working smoothly except the loading time. Because of this I am also looking forward to this AJAX support to get this great module also working normal on IE with a normal loading time.
Again thanks, and if I need to test something, please email me.
greetings,
Martijn
#6
Same feature request for me. It would be great to have AJAX hierarchy/dropdowns. For example:
-Taxonomie level 1 (root) PRE-LOADED
--Taxonomie level 2 (level 1 child) NOT PRE-LOADED
---Taxonomie level 3 (level 2 child) NOT PRE-LOADED
Actually everything gets pre-loaded in the page. In other words, every possible combination within the same taxonomie (vocabulary) gets pre-loaded.
In my case the problem is I have a taxonomie with 80,000+ records. That's about 20MB so the webpage is way too long to load and use too much bandwidth ($).
Examples of Drupal AJAX dropdowns:
#7
Hi,
This module: http://drupal.org/project/taxonomy_strider has AJAX support and is also in the taxonomy category. It would be great to have this functionality in cck_taxonomy_ssu!
EDIT: Any progress in this field please?
My site: www.trekking-world.com (sort of development aid site) needs to be loaded in Nepal.
Because of the slow loading of all the categories it is not workable in Nepal (slow internet speed).
Please make this great module use AJAX functionality to speed up and differ the loading related to the level of the category what you want to select!
greetings,
Martijn
#8
Dude! I have a zillion modules and not much time! Bitching about things won't get them done sooner! Unless you or someone else has like a million dollars so I can quit my job, I can only work on this stuff a little at a time. Right now, I'm working on the og_forum module. Don't expect an update to this module for many months since there are other modules that also need attention and I just made a new release for this one.
However, patches are always welcome, so if you code a solution, post it here.
#9
Ryan, no problems, Not bitching around, if so received, not intended, sorry.
Hi, Anyone out there who is willing to write a patch to get this great module on AJAX?
Greetings,
Martijn
#10
The new module Hierarchical Select will have two new major features:
I’m sponsoring a small part of Hierarchical Select development. If others want to do a joint sponsorship your welcome. Beta testers are welcome too. Development updates are posted by Wim at: http://drupal.org/node/226067 Wim can be contacted at: http://drupal.org/user/99777 or http://wimleers.com/contact
#11
Perhaps I'll have time to steal the code from Hierarchical Select once it's done and incorporate it. I'm swamped right now and og_forum is at the top of my list.
#12
That would be great.
I've just installed this module (which I think is great) but having the same problem with slow loading because of so many terms (a few thousand).
In the meantime I'm going to try the Hierarchical Selec