Re: Can $ajax-sortable drag around table rows?
That's really some useful convention, there is additionally a footer tag tfoottrtd/td/tr/tfoot, curiously it has to be placed between thead and tbody. But there is still a problem with the dragging effect in the tbody, you just see the rows swapping places but you don't see any movement of the row while dragging. If you turn ghosting on, you can see at least a clone of the row moving, but as a nasty side effect the tbody changes its height with each move. Any ideas? jeko schrieb: Convention seems to be pointing towards: table theadtrthColumn header/thtr/thead tbodytrtdColumn data/td/tr/tbody /table Which is not what most of us are used to, but it is better in the long run. Follow that type of markup for your tables, and you'll find that you can drop in any kind of JS library fanciness. On Oct 24, 6:44 pm, schneimi [EMAIL PROTECTED] wrote: I just read throughhttp://wiki.script.aculo.us/scriptaculous/show/Sortable.create, and there is some important note about tables but also a very good hint. Just wrap a tbody around your tr's and use the id of the tbody for sorting. schneimi schrieb: I had the same problem and ended up in using a nested table inside a ul, but I don't like it very much. I found out that there is a tag option which can be used like $ajax- sortable('sortable_table', array('tag' = 'tr')) but it didn't work as well. On 24 Okt., 20:25, Corie [EMAIL PROTECTED] wrote: I have a table in which I want to sort the rows by using the drag and drop methods of $ajax-sortable, but it's not working. Are table rows even draggable, or do I have to make a nested table inside a ul? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Can $ajax-sortable drag around table rows?
I had the same problem and ended up in using a nested table inside a ul, but I don't like it very much. I found out that there is a tag option which can be used like $ajax- sortable('sortable_table', array('tag' = 'tr')) but it didn't work as well. On 24 Okt., 20:25, Corie [EMAIL PROTECTED] wrote: I have a table in which I want to sort the rows by using the drag and drop methods of $ajax-sortable, but it's not working. Are table rows even draggable, or do I have to make a nested table inside a ul? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Can $ajax-sortable drag around table rows?
Yea I did the same. It's not as efficient but it works well. On Oct 24, 6:29 pm, schneimi [EMAIL PROTECTED] wrote: I had the same problem and ended up in using a nested table inside a ul, but I don't like it very much. I found out that there is a tag option which can be used like $ajax-sortable('sortable_table', array('tag' = 'tr')) but it didn't work as well. On 24 Okt., 20:25, Corie [EMAIL PROTECTED] wrote: I have a table in which I want to sort the rows by using the drag and drop methods of $ajax-sortable, but it's not working. Are table rows even draggable, or do I have to make a nested table inside a ul? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Can $ajax-sortable drag around table rows?
I just read through http://wiki.script.aculo.us/scriptaculous/show/Sortable.create, and there is some important note about tables but also a very good hint. Just wrap a tbody around your tr's and use the id of the tbody for sorting. schneimi schrieb: I had the same problem and ended up in using a nested table inside a ul, but I don't like it very much. I found out that there is a tag option which can be used like $ajax- sortable('sortable_table', array('tag' = 'tr')) but it didn't work as well. On 24 Okt., 20:25, Corie [EMAIL PROTECTED] wrote: I have a table in which I want to sort the rows by using the drag and drop methods of $ajax-sortable, but it's not working. Are table rows even draggable, or do I have to make a nested table inside a ul? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Can $ajax-sortable drag around table rows?
Convention seems to be pointing towards: table theadtrthColumn header/thtr/thead tbodytrtdColumn data/td/tr/tbody /table Which is not what most of us are used to, but it is better in the long run. Follow that type of markup for your tables, and you'll find that you can drop in any kind of JS library fanciness. On Oct 24, 6:44 pm, schneimi [EMAIL PROTECTED] wrote: I just read throughhttp://wiki.script.aculo.us/scriptaculous/show/Sortable.create, and there is some important note about tables but also a very good hint. Just wrap a tbody around your tr's and use the id of the tbody for sorting. schneimi schrieb: I had the same problem and ended up in using a nested table inside a ul, but I don't like it very much. I found out that there is a tag option which can be used like $ajax- sortable('sortable_table', array('tag' = 'tr')) but it didn't work as well. On 24 Okt., 20:25, Corie [EMAIL PROTECTED] wrote: I have a table in which I want to sort the rows by using the drag and drop methods of $ajax-sortable, but it's not working. Are table rows even draggable, or do I have to make a nested table inside a ul? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---