Hello, and welcome !

Please have a look at this :
http://www.oriontransfer.co.nz/Sortable%20List%20v2.zip
Does it feeds your needs ?

On 3/1/06, Frank Schummertz <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi *,
>
> I am new to this list, so please excuse me if this has been covered
> before (unfortunately the search function at
> http://www.ruby-forum.com/forum/10 is disabled at the moment).
> If yes, then a pointer to a solution would be great.
>
> I want to create a sortable tree with scriptaculous Sortable. There are
> several categories and subcatgories:
>
> cat_a
> - --subcat_a_1
> - --subcat_a_2
> cat_b
> - --subcat_b_1
> cat_c
> cat_d
> - --subcat_d_1
>
> and so on, you get the point.
>
> Now I want to sort subcategories inside a category and move them from
> e.g. cat_a to cat_d and I also want to sort the main category order
> itself (e.g. moving cat_c to the top of the list).
>
> Both the categories and the subcategories are ul's. My containment
> parameter for the Sortable.create now contains _all_ id's  but I can
> only move the categories, not the subcategories.
>
> Is it possible to achieve this with the Sortable class at all?
> Do I do something wrong?
> Did I misunderstand the whole thing?
>
> Thanks in advance.
>
> Frank
>
>
> - --
> "Laut einer Studie der deutschen Ärztevereinigung sterben immer
> mehr Rentner vor dem Computer. Sie drücken versehentlich die
> Tastenkombination Alt+Entfernen."
>
> http://www.landseer-stuttgart.de
> http://www.pn-cms.de
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFEBYrK4U8nM9OV6z8RAu3uAKDZaZnSI6W6syFAA2A6Lx4N2DMA3QCeNt5J
> Kz+4rwSA8k62LnBiSHeoKPs=
> =0NgW
> -----END PGP SIGNATURE-----
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to