Hi,

My appology if this has been answered before, but I have searched the
forum several times and nothing turned up.

I have a list of things that are displayed within a table (so that all
the columns are lined up properly). It is a ordered list and I want to
let the user to reorder it by drag and drop.

I want to make the first column of each row a drag handle (will be
replaced by an img to hint that it is draggable).

I modified sortable_test.html to something like this:

<table>
<tbody id="thelist">
        <tr><td>handle 1</td><td>foo</td></tr>
        <tr><td>handle 2</td><td>bar</td></tr>
        <tr><td>handle 3</td><td>baz</td></tr>
</tbody>
</table>
<a href="#"
onclick="MochiKit.Sortable.Sortable.create('thelist');return
false;">Create sortable</a>

But it looks like this won't work. Has anyone tried something like
this?

Assuming that there is a way to make this work, how to I know what row
has been moved? (in order to generate a ajax request to the backend)

Do I need to insert a <div> with unique id in the first column of each
row or something like that?

Thanks in advance.
--fungsin


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to