Code: Select all
$(document).ready(function() {
$(function() {
$("#contentLeft ul").sortable({
opacity: 0.6,
cursor: 'move',
update: function() {
var order = $(this).sortable("serialize") + '&action=updateRecordsListings';
$.post("updateDB.php", order, function(theResponse) {
$("#contentRight").html(theResponse);
});
}
});
I was hoping to get this function to be called instead of an external page(updateDB.php)
and without reloading the current page.
Maybe .post is not the one i should use or is it?
Any idea would be appreciated.