jquery - sortable lists, with sortable lists -


I am trying to list lists of 3 levels that are all ordered & amp; Trying to establish an easy way to manage navigation menus with multiple levels, in fact, dragging each other.

It has 90%, but for some reason this item can not be saved in any child list, it seems to get only the parent ID of that list ?!

  • That is, a pink object in the third (blue) level in a green stream.

However, I can add that item to that level with the camera or the level of his parents.

Can a blue object go to the list of other blue items or to pink level?! Anand I have just seen that this works if you put a pink object in a different green section frm in the pink square ..!

Any help appreciated! DC.

  $ (function () {$ ("div.sortable"). (Function (i) {makeSortable ("#" + $ (this) .attr ("id")) ; // $ ("#fdbk"). Append ("<+" $ (this) .attr ("id") + "& lt; / li & gt;");});}); Function MesortTable (ID). Sourceable ({connectWith: 'div.sortable', opacity: 0.9, distance: 15, placeholder: 'placeholder', assistant: 'clone', update: function (e, UI) {Serialize (id, 'update'); // $ ("#fdbk"). Append ("& lt; li> from update:" + $ (id) .attr ("id") + "I'm:" + $ (Id) .attr ("id") + "");}, / * received: function (e, ui) {serialize (id, 'received'); // $ ( "# Fdbk" $. (Id) .attr ("id") + "I am:" + $ (id) .attr ("id") + "I am:" + $ (this) .attr ("id ");"););}, Sort: function (E, UI) {serial ize (id, 'sort'); // $ ("# fdbk") .append ("& lt ; Li & gt; From : "+ $ (Id) .attr (" id ") +" I am: "+ $ (id) .attr (" id ") +" I'm: "+ $ (this) .attr (" id ") + "& Lt; / li & gt;");} * /}); }; Function serialize (s, e) {var sortableLinks = $ (s); Var parentID = sortableLinks.attr ("name"); $ (SortableLinks) .sortable (); Var data = $ (s) .sortable ('serialize'); $ .ajax ({url: "/youradmin/scripts/php/process.php", type: "post", data: data + "& parentID =" + parentID + "and reorder property = 1"}) ; $ ("#fdbk") HTML (""). $ ("#FDBK"). Prepaid ("<; Event:" + E + "; IDEER:" + Data + "Parents: " + parentID + "& lt; / b & gt; & lt; / Li & gt; "); };  

It starts working!

  $ (function () ($ ("div.sortable"). (Function (i) {makeSortable ("#" + $ (this) .attr ("id")) ;});}); Function mesortable (id) {$ (id) .sortable ({connectWith: 'div.sortable', opacity: 0.9, distance: 15, placeholder: 'placeholder', helper: 'clone', cursor : 'Move', update: function (e, ui) {} serialize (id, e, yi);}, sorted: function (e, uiii) / serialize (id, e, yi);} : Function (E, UI) {SerializationOnstop (ID, E, UI);}}).}; Function Serialize (A) S, E, UI) {var sortableLinks = $ (s); var parentID = sortableLinks.attr ("name"); $ (SortableLinks) .sortable (); Var data = $ (s) .sortable ('serialize') ; $ .jax ({url: "/youradmin/scripts/php/process.php", type: "post", data: data + "& parentID =" + parentID + "and re-order property = 1"} ); $ ("#FDBK"). Prepaid (" Event:" + e.type + "Data:" + Data + "Parent ID:" + parentID + "s;" + sortableLinks.attr ("Id") + "& lt; / li>");}; Function's serialized onsite (S, E, UI) {var item = ui.item; Var newParent = $ ("#" + item.attr ('id')) parent ('div'); Var sortableLinks = $ (s); Var parent id = new operator.cttre ("id"). the division ("_"); $ (NewParent) .sortable (); Var data = $ (newpaper) .sortable ('serialize'); $ Ajax ({url: "/youradmin/scripts/php/process.php", type: "post", data: data + "& parentID =" + parentID [1] + "& recomputed content = 1"} ); $ ("#FDBK"). Prepaid (" 

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -