Douglas Forrest
2006-Jun-18 23:37 UTC
Very cool scriptaculous table drag and drop stopped working on new version
Using older versions of prototype.js (1.4.0_rc2) and scriptaculous (1.5._rc4), I had a master table containg other tables (sections), each of which had rows. Using tbody''s as containers, I could drag the section tables up and down over the other section tables AND drag the rows in a section table up and down within that table or into the rows of the other section tables, all very cool. I want to upgrade to the current scriptaculous/protptype combo (for window scrolling), but when I do, major problems appear. Now when a section heading (section table thead row) is clicked and the cursor moved, a highlighted select is performed instead of a drag. And now when a section table tbody row is clicked, it generates an "Element.Class has no properties" error and the dragged row cannot be dropped. I''ve attached a zip file, OldVersionTest.zip, which unzips into a "OldVersionTest'' directory which contains the old versions of prototype (in /lib) and the two required old scriptaculous js files (dragdrop.js and effects.js in /src) and a test page, DEF_Test.html in the /test sub-directory. Open DEF_Test.html (only tested in Firefox and IE) and it works perfectly (in Firefox, the move cursor doesn''t show when hovering over a draggable section or section row). If you copy DEF_Test.html into the test sub-directory created when scriptaculous.js.1.6.1.zip is unzipped and open it there, the problems will be apparent. Any ideas, anyone? Thanks _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs