Serialize does not work

Serialize does not work


Another try. After now spending quite some hours on it...
How is it possible to get a serialize result like in this old demo ?
http://interface.eyecon.ro/demos/sort.html
The problem is, that when i move a item to another col, the value
order changes, but not the col var value.
In this demo it works. With sortable("serialize") it does not...
JS:
    $("ul.elements").sortable({
        items: "li",
        placeholder: "empty",
        forcePlaceholderSize: true,
        tolerance: 'pointer',
        connectWith: ["ul.elements"],
        update: function(element, ui) {
            $.post("index.php", { ajax: true, order: $
("ul.elements").sortable("serialize", {connected: true}) } );
        }
    });
HTML
<table border="0" cellpadding="2" cellspacing="1" width="100%"
class="default">
    <tr>
        <td class="alt5" width="50%" valign="top">
        <ul id="col_1" class="elements">
            <li class="litem" id="i1_20">
                bla bla
            </div>
        </ul>
        </td>
        <td class="alt5" width="50%" valign="top">
        <ul id="col_2" class="elements">
            <li class="litem" id="i2_24">
                bla bla
            </div>
        </ul>
        </td>
    </tr>
</table>






































    • Topic Participants

    • mb