ul sortables get serialized data
Posted
by russp
on Stack Overflow
See other posts from Stack Overflow
or by russp
Published on 2010-05-27T19:28:52Z
Indexed on
2010/05/27
19:31 UTC
Read the original article
Hit count: 303
Hi folks
Any ideas how to get the serilized data from this function? the html is first with the JQuery function last, I cannot get the serialization to appear in the alert. When I can do that I can finish this by sending via ajax etc...
<div class="column" id="col1">
<div class="portlet">
<div class="portlet-header">Feeds</div>
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
</div>
<div class="portlet">
<div class="portlet-header">News</div>
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
</div>
Shopping
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
Links
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
Images
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
$(function() {
$("#col1, #col2, #col3").sortable({
connectWith: '.column',
receive : function () {
serial = $('#col1').sortable('serialize');
//serial2 = $('#col2').sortable('serialize');
//serial3 = $('#col3').sortable('serialize');
alert(serial);
}
}); });
© Stack Overflow or respective owner