Well I went with sortable which works how I was hoping.
Code:
$("#main").sortable({
opacity: 0.6,
update: function(event, ui) {
var info = $(this).sortable("serialize");
alert(info);
}
});
$( "#main" ).disableSelection();
The problem is that I am building a widget type system, the widgets are variable widths and heights.
The dimensions are fixed sort of based on css classes ie:
.cols_1{width:200px;}
.cols_2{width:400px}
.rows_1{height:100px;}
.rows_2{height:200px}
I am sure you know actually sortng and aligning something like this is a pain in the butt if not impossible, any suggestions as to how I can fill in the blanks? I need to store the postion in a databse so the next time a user logs in it will be the same
widgets_align_sample.jpg
Bookmarks