views:

96

answers:

0

I had stored user id, div id, ui.position.left and position.top in to my database, how can to display the new order which I stored in database?

$(function() {
    $(".column").sortable({
        connectWith: '.column',
        stop : function (event, ui) {
        alert(ui.item.text);
        //callback function
        $.post("Layout", 
            { 
                //parameters to send to your ajax page
                sid : $('input#username').val(),
                top: ui.position.top, 
                left : ui.position.left,
                div : $(ui.item).attr('id')
            }  
        );
    }
    });