I have a page with two columns - one with menu blocks, and the other one with news blocks. I am trying to implement drag ''n'' drop in both columns separately, but looks like, one set of JS vars is conflicting with the other group of vars. It woks fine only within one column. Can you please suggest a workaround ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Christophe Porteneuve
2007-Apr-21 11:00 UTC
Re: Drag ''n'' Drop - multiple instances in the sampe page
Hey, nkapoor a écrit :> I have a page with two columns - one with menu blocks, and the other > one with news blocks. I am trying to implement drag ''n'' drop in both > columns separately, but looks like, one set of JS vars is conflicting > with the other group of vars. It woks fine only within one column. Can > you please suggest a workaround ?You''ll probably have to put some reproducible case online for us to tinker with. The description you give here is too fuzzy. Multiple independant d''n''d stuff certainly works. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 Apr 21, 6:00 am, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> nkapoor a écrit : > > > I have a page with two columns - one with menu blocks, and the other > > one with news blocks. I am trying to implement drag ''n'' drop in both > > columns separately, but looks like, one set of JS vars is conflicting > > with the other group of vars. It woks fine only within one column. Can > > you please suggest a workaround ? > > You''ll probably have to put some reproducible case online for us to > tinker with. The description you give here is too fuzzy. Multiple > independant d''n''d stuff certainly works. > -- > Christophe Porteneuve a.k.a. TDDThanks for your response. I have a small test case at http://webrachna.com/dnd.html Column 1 works fine with DnD, but column 2 does not. Basically, the html construct I have is as follows. I am using the exact same IDs for the two columns, and that, I think, is causing the problem. <div id="content" style="margin: 5px;"> <div id="portal"> <table border="0" cellSpacing="0" cellPadding="2"> <tr> <td vAlign="top" width="33%"> <div class="portal-column" id="portal-column_1"> <div class="block block-aggregator" id="01"> <!-- C 1 - B 1 details --> </div> <div class="block block-aggregator" id="02"> <!-- C 1 - B 2 details --> </div> </div> </td> </tr> </table> </div> </div> <div id="content" style="margin: 5px;"> <div id="portal"> <table border="0" cellSpacing="0" cellPadding="2"> <tr> <td vAlign="top" width="33%"> <div class="portal-column" id="portal-column_1"> <div class="block block-aggregator" id="03"> <!-- C 2 - B 1 details --> </div> <div class="block block-aggregator" id="04"> <!-- C 2 - B 2 details --> </div> </div> </td> </tr> </table> </div> </div> Thanks, Nishi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---