Wednesday, July 29, 2009

Sortable using jQuery help

Has anyone implemented the sortable feature using jQuery UI?
 
I found this online
 
I  have the sorting part working but its not firing the ajax request to update the order.
 
$("#sortable").sortable({
    update: function() {
        $.post('/entries/order/0/', $('.li').sortable("serialize", {key: 'li[]'}))
    }
 
});
 
Ideas?
 
Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: