alright i am working on jQuery - UI Sortable Portlets and im trying to pass serialize on to the php so i can update my database with each displays column, and position so it will save for my users i have what I've done so far below if anyone know how to do this or know anywhere i can go to learn how to do this i would greatly appreciate it because i have several pages that i need to use this with also dose any know how to make the content area disabled from dragging so you can select text and use forms in them because i just want it where you start drag from is the header of each display not the whole display this is the display
Display Here
<div id="comp_widgets" class="portlet">
<div class="portlet-header">Widgets</div>
<div class="portlet-content content">This is the widgets display</div>
</div>
Source Code Here
<script type="text/javascript">
$(function() {
$(".column").sortable({
revert: true,
scroll: true,
appendTo: 'body',
connectWith: '.column',
delay:200,
cancel: '.disabled',
stop: function() {
$(".column").each(function(){
var myArray = $(this).sortable("serialize");
})
},
revertDuration:50000,
scope:'scope',
opacity: 0.80,
});
$(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all")
.find(".portlet-header")
.addClass("ui-widget-header ui-corner-header")
.prepend('<div class="ui-icon2 ui-exit"> </div><div class="ui-icon ui-mini"> </div>')
.end()
.find(".portlet-content")
.addClass("widget-content");
$(".portlet-header .ui-icon").click(function() {
$(this).toggleClass("ui-icon-minusthick");
$(this).parents(".portlet:first").find(".portlet-content").toggle();
});
$('.portlet-content').disableSelection();
});
</script>
<body>
<div class="wrapper">
<div class="sidescolumn">
<div class="basicD">
<table>
<td height="130" width="100" align="center" valign="bottom"><img src="images/me.jpg" alt="No Photo" width="125" height="100" border="0" />
<td>
<tr>
<td align="right">Views:
<td align="left"><span class="p-views">1234567890</span>
</table>
</div>
<div id="edit" class="portlet">
<div class="noneM-widget-header">Edit</div>
<div class="portlet-content content">
<a href="index.php?smartyaction=edit.profile">Edit Profile</a><br/>
<a href="index.php?smartyaction=myAccount">Edit Account</a><br/>
<a href="index.php?smartyaction=profile.customize">Customize Profile</a><br/>
</div>
</div>
<div id="column1" class="column column1">
<div id="comp_widgets" class="portlet">
<div class="portlet-header">Widgets</div>
<div class="portlet-content content">This is the App & widgets componet</div>
</div>
</div>
</div>
<div class="midcolumn">
{$myaulrts}
<div id="column2" class="column column2">
<div id="comp_Alurts" class="portlet">
<div class="portlet-header">Alerts</div>
<div class="portlet-content content">This is the Alerts componet</div>
</div>
<div id="comp_billbord" class="portlet">
<div class="portlet-header">Billbord</div>
<div class="portlet-content content">This is the Billbord Component</div>
</div>
<div id="comp_status&moods" class="portlet">
<div class="portlet-header">Status and Moods</div>
<div class="portlet-content content">This is the status componet</div>
</div>
</div>
</div>
<div class="sidescolumn">
<div class="portlet">
<div class="noneM-widget-header">Cp Links</div>
<div class="portlet-content content">This is the Canaway Productions Links</div>
</div>
<div id="column3" class="column column3">
<div id="comp_friends" class="portlet">
<div class="portlet-header">Friends</div>
<div class="portlet-content content">This is the Friends Component</div>
</div>
</div>
</div>
</div>
</body>
</html>