jamus — 2011-02-25T10:53:25-05:00 — #1
I hava sortable list using jQuery UI Sortable. When the items are re-ordered the new order is written to the database. All working fine — however, if I use jquery to add a new item ....
$('.litodo:first-child').before('<li id="todosArray_300" class="litodo"><a href="" id="300" class="todo active">'+todotext+'</a></li>');
then this item is 'sortable' on page and even calls the "update order" function but doesn't actually update the database.
View the example here
Can some find my bug?!? :eye:
jamus — 2011-02-25T11:01:23-05:00 — #2
hmmmm tried reading the documentation again.
$("#sortable").sortable('refresh'); does not seem to help.
longmatch — 2011-08-22T00:09:01-04:00 — #3
I have this same problem. Did you find a solution? I tried Jquery sortable('refresh'), adding sortable item with ASP.NET, no sucess.
jamus — 2011-08-26T02:59:40-04:00 — #4
Are you still having a issue? I did have a solution but can't access the code now. I could post it later if you are?
If think it may have been to so with the .bind() command but can't be sure from memory.
longmatch — 2011-08-26T09:46:19-04:00 — #5