我一直在寻找一个没有运气的解决方案。
我正在寻找的方法是将http://jqueryui.com/demos/sortable/#connect-lists中的示例与PHP / MySQL合并。
有几个例子只适用于一个列表,即http://www.wil-linssen.com/musings/entry/extending-the-jquery-sortable-with-ajax-mysql/
但我没有找到一个包含多个列表的示例。
有没有人有解决方案或链接到有效的示例?
谢谢! /大卫
答案 0 :(得分:0)
添加回调(从文档中获取和扩展的示例):
$( "#sortable1, #sortable2" ).sortable({
connectWith: ".connectedSortable",
update : function(event, ui) {
//ui.sender is the list the item comes from
//ui.item is the current item that moved
//ui.position is the current position
}
}).disableSelection();
现在使用ui
参数在回调中做你想要的任何ajaxy。