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/NestedSortableDocumentation - 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 -~----------~----~----~----~------~----~------~--~---