I'm having a hard time following the problem but this is what I used
for my tree
http://www.botsko.net/blog/2009/01/jquery_serialize_list_plugin/

I had to modify it a bit for my needs but I it may help you

Mike

On Oct 28, 1:49 pm, Cyril Lopez <loveisthe...@gmail.com> wrote:
> Hi,
> I'm using sortable() function in order to arrange nested lists.
>
> My html :
>
> <ul id="parent_0" class="parents">
>   <li id="child_1">Item 1
>     <ul id="parent_1" class="parents">
>       <li id="child_2">Item 2</li>
>     </ul>
>   </li>
>   <li id="child_3">Item 3
>     <ul id="parent_2" class="parents">
>       <li id="child_4">Item 4</li>
>     </ul>
>   </li>
> </ul>
>
> My js :
>
> $('.parents').sortable(
>   {
>     items: '>li',
>     handle: 'span.anchor',
>     connectWith: '.parents',
>     dropOnEmpty:true,
>     helper:'clone',
>     placeholder: 'holder',
>     delay:0,
>     opacity: 0.4,
>     forcePlaceholderSize:true,
>     update: function(event, ui) {
>       $.post('myUrl.html',$(this).
> sortable('serialize',{ key: 'positions[]' }));
>     }
>   }
> );
>
> - When I drag child_4 to parent_0 I have 2 serialized posts, great.
> - When I drag child_2 to parent_2 I have 3 serialized post, the root ul, and
> the two others ul which receives or removes elements.
> - The problem : when I drag child_1 to parent_2 (as child_4 sibling) I have
> only 1 serialized post, the root ul. But I want parent_2 serialization too !
>
> After hours on Google search I found several plugins like :
> -http://www.b-hind.eu/jquery/index.php
> -http://code.google.com/p/nestedsortables/wiki/NestedSortableDocumenta...
> -http://code.google.com/p/nestedsortables/
>
> Does it means my need is impossible with UI sortable/serialize functions ?
>
> Thanks for any help
>
> --
> Cyril, Nethik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to