[EMAIL PROTECTED] wrote:
Hi, I'm wondering if it's possible to create a table with sortable rows.
[...snipped details...]
 <script type="text/javascript">
 // <![CDATA[
   Sortable.create("firstlist",
     {dropOnEmpty:true,containment:["firstlist"],constraint:false});
 // ]]>
 </script>

You can sort with other items besides a list but you must specify the tag of the items to be made sortable if you do. This is the "tag" option and should probably be set to "tr".

That being said I believe there are browser issues with sorting tables (I think specific to IE) so even with proper arguments it is not really sortable (but other elements are and if you really wanted a cross-browser table you could simulate it with <div> tags or something).

Eric

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to