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>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to