Hey Han, Yeah, that takes a little work. I have a similar scenario where I drag menu items (in li tags) in to and from different ul's within on large ul. I'l do my best to give you some points of direction to go.
My suggestion would be review the demo at http://wiki.script.aculo.us/scriptaculous/page/print/SortableListsDemo, if you haven't yet. It gives you the first part of your fucntionality. With retrieving the data, have a look into the the property OnUpdate of the sortables. This will allow you to build temporary lists of your sortables (like: onUpdate:function(){list = Sortable.serialize('THE_UL_ID')}). The only addition I would do is save all the sortable lists into an array like: onUpdate:function(){list['one'] = Sortable.serialize('UL_ID_1');list['two'] = Sortable.serialize('UL_ID_2')} The serialise will allow you to receive the list data. Now, to post the data back to you, look into the Ajax.Updater functions, and on the properties part of the Updater function, specify an additional one of: {parameters:list, ...}. What I did was watch a button "Save" being clicked, and used that to post the data back...like: Event.observe( 'save', 'click', function(event){ new Ajax.Updater( 'request', 'THE_URL', {parameters: list, asynchronous:true, method:'post', evalScripts:true, requestHeaders:['X-Update', 'request'] } ) } ,true); Then print_r the data that is being received and write something that will build an update array that you can used to update the data. Hope this helps. G --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
