tommycl
11 Mar 2011, 09:16 AM
trying to resize a box but cant get the id
<script type="text/javascript">
$(document).ready(function() {
$('.text_wrapper').resizable({
onResize: function(e) {
var id = $(this).attr("id");
var parent = $(this).parent();
$('.wrapper').load('modules/web/process-sortable-size.php?height='+ e.data.resizeData.target.css('height') +'&width='+ e.data.resizeData.target.css('width') +'&id='+ id);
},
onStop: function(e) {
}
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('.text_wrapper').resizable({
onResize: function(e) {
var id = $(this).attr("id");
var parent = $(this).parent();
$('.wrapper').load('modules/web/process-sortable-size.php?height='+ e.data.resizeData.target.css('height') +'&width='+ e.data.resizeData.target.css('width') +'&id='+ id);
},
onStop: function(e) {
}
});
});
</script>