I have multiple drag and drop lists. If you sort within one list, you can pass the list back to the server using:

<%= sortable_element 'task-list' << person.id.to_s   ,
             :url ="" { :action ="" "noop", :id => @user },
            ...
        %>

Which causes this to be included in the _javascript_:
onUpdate:function(){new Ajax.Request('/tasklist/noop/101',... parameters:Sortable.serialize('task-list101') 

If you are dragging between two lists, how do you pass both back? (or does  the onUpdate get called twice (once for each list?))

What if you wanted to pass all the lists back after multiple drags and drops?

thanks
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to