Hi guys!

The reason why is doesn't work on table rows is that there are many
issues conntected to tables when it comes to dynamics.

Interface's sortables creates a copy of the current element and moves
this copy along with the cursor. However, a table row is not a
self-containing element. If you copy it and attach it to the parent
(or the body), it's non valid html and produces strange to no results.

However, I did actually do something with Interface, using the
underlying script of Sortables, Draggables/Droppables, which the help
of Stefan.

with ghosting on, you have to call onStart callback first, then wrap a
<table> tag around the clone (which is given as a callback argument)
to interpret it correctly. However, there are big problems connected
with this method:

1.) Each <td> must have a width (and optionally height), because
dynamic widths from the whole table are not copied to the new table.
2.) Somehow it worked only the first time in IE7 (drag one time), and
then stopped working. I think it's because javascript wants valid html
so badly that it adds tags itself when working with non-valid DOM.
Strange things happen. Only Firefox did it correctly.

What I would do: Do NOT use the original cloned <td>, but create a
element yourself, something that just indicates that you're sorting.
I.e. a <div> container that *almost* looks like your row.

Hope this helps a bit!

2006/11/24, jazzle <[EMAIL PROTECTED]>:
>
> I too would find this *really* useful.
> Anyone?
>
>
> Olivier Meunier wrote:
> >
> > Hi,
> >
> > I tried interfaces Sortables, works fine with list item but not with
> > table rows. Does someone have tips or workaround for this?
> >
> > Thanks,
> >
> > --
> > Olivier Meunier
> > ...
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Sortable-table-rows-tf2670615.html#a7526420
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>


-- 
Paul Bakaus
Web Developer
------------------------
Hildastr. 35
79102 Freiburg

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to