Hello. I''m using the script.aculo.us library inside of a RoR application. I''ve got the Drag and Drop almost working. I''m having 2 problems. #1 - The list of options is set up inside of a table due to the amount of data that is displayed. I''ve got data fields that a user can choose from to drag to select. When a user clicks on the field to drag, all of the table cells in that row visually shift to the right and stay there after the field has been dropped. This then make for an ugly select list. Any thoughts on how to fix that? #2 - This works in FF and Safari, but not IE. I read that I could set a delay option somewhere, where does that go? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I can''t find it in the docs now, but I seem to remember that dragables and tablers didnt mix well. - JDD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Apr 24, 2008 at 1:30 PM, jdalton <John.David.Dalton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I can''t find it in the docs now, but I seem to remember that dragables > and tablers didnt mix well.I would not expect them to. Just thinking about how all that code would work makes my brain hurt. Draggables would great with block-level elements. -justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
There''s definitely something in the docs about Sortables and tables, in that you can make it work pretty well if you code out your table with a thead and tbody, and then take care to move only TRs around. But what I was thinking for your problem was that you could simply make your "table" out of a UL, each LI of which would contain a set of sized, floated DIVs. Make sure you also float your LI so the child elements don''t peek out of the bottom and start crashing into one another, and you should be good. It''s a lot more code, even with classnames to indicate the columns, but at least your D&D will work as intended. Walter On Apr 24, 2008, at 2:36 PM, Justin Perkins wrote:> > On Thu, Apr 24, 2008 at 1:30 PM, jdalton > <John.David.Dalton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I can''t find it in the docs now, but I seem to remember that >> dragables >> and tablers didnt mix well. > > I would not expect them to. Just thinking about how all that code > would work makes my brain hurt. > > Draggables would great with block-level elements. > > -justin > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for your help. In looking at this, the way my columns are created dynamically so now I''m not sure I can use a CSS div 3 column layout approach since each list item is being created dynamically. Here''s my code: <table width="350"> <ul id=''pending_todo_list''> <tr> <% @pending_todos.each_with_index do |item, i| -%> <% domid = "todo_#{item.id}" %> <td width="33%"><li class="pending_todo" id=''<%= domid %>''><%item.name %></li></td> <%= draggable_element(domid, :ghosting=>true, :revert=>true) %> <%= "</tr><tr>" if 2 == i.modulo(3) -%> <% end %> </tr> </ul> </table> Before I start down that path and get to a dead end, any thoughts? On Apr 24, 1:51 pm, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> There''s definitely something in the docs about Sortables and tables, > in that you can make it work pretty well if you code out your table > with a thead and tbody, and then take care to move only TRs around. > But what I was thinking for your problem was that you could simply > make your "table" out of a UL, each LI of which would contain a set > of sized, floated DIVs. Make sure you also float your LI so the child > elements don''t peek out of the bottom and start crashing into one > another, and you should be good. It''s a lot more code, even with > classnames to indicate the columns, but at least your D&D will work > as intended. > > Walter > > On Apr 24, 2008, at 2:36 PM, Justin Perkins wrote: > > > > > On Thu, Apr 24, 2008 at 1:30 PM, jdalton > > <John.David.Dal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> I can''t find it in the docs now, but I seem to remember that > >> dragables > >> and tablers didnt mix well. > > > I would not expect them to. Just thinking about how all that code > > would work makes my brain hurt. > > > Draggables would great with block-level elements. > > > -justin--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---