Sortable & resizable

Sortable & resizable


Hi I have started using jquery UI today and I am trying to have a
sortable list, while being able to resize them. But I cannot get it
working, I think its something stupid I have done, code below:
$(function()
    {
        $("#sortable").sortable({
            revert: true,
            axis: 'y',
            opacity: 0.9,
            tolerance: 'pointer',
        });
        $("#draggable").draggable({
            connectToSortable: '#sortable',
            helper: 'clone',
            revert: 'invalid'
        })
        $("#sortable").resizable()
    });
Also is there anyway I can get the location and size of the elements
on the page? so for example I can store these in a database, and
"reload" them so the size and location is the same once saved?
Thanks alot.