0

I have a sortable list that updates my database when items are shifted around. However, there's also a feature where users can add new items to the list dynamically. When these items are added, for some reason, sortable acts as if they don't exist when updating the item positions in the database.

Is there a way to essentially serialize the sortable list after an item is added so it is essentially 'live' on the page?

I've looked into the .refresh() code but that doesn't seem to work...Thanks!

1
  • Everything is impossible. Wait. I mean possible. Commented Apr 29, 2012 at 23:33

1 Answer 1

1

If simple enought, you can use the callback method of the adding sequence and update the database like that instead.

$("#newtab").appendTo("#sortableContainer", function() {
    //OK its time to update this addition to the database
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.