php - Saving Ordering Of A Sortable List Using jQuery UI -



php - Saving Ordering Of A Sortable List Using jQuery UI -

i working on wordpress function allows users add together links side bar of website (and automatically generates domain extension based on users input). trying implement jquery ui's sortable function allow users order links way like. sortable function working great, order not save 1 time page refreshed. have looked everywhere , seems should using ajax , type of update function within jquery.

right have this:

$(document).ready(function(){ $("tbody#existing").sortable({ helper: fixhelper}).disableselection();

});

yes, need communicate item order server , means ajax. 1 time server has info needs store someplace (the database), later needs retrieve it, , useful it. puts squarely in middle of "plugin development."

there (at least) 1 plugin this, my link order. utilize that, or utilize learning tool develop own plugin.

some other pages may useful you:

writing plugin creating options pages

php ajax wordpress jquery-ui plugins

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -