Hi there, I am trying to set up a DragScrollable window (see http://wiki.script.aculo.us/scriptaculous/show/DragScrollable) and in that same window, have a drag and drop effect... OK, I know it sounds a bit crazy and I would understand if it is not possible. Anyway, if I remove the drag and drop, it works OK. With the drag and drop: * on Firefox, it still works, but the drag and drop doesn''t work * on IE7, the drag and drop works, but the DragScrollable doesn''t get picked up (the whole content is shown) Has anyone tried to do something like that? Is it really not possible? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It''s because DragDrop and DragScrollable both use Event.stop, so the event isn''t propagating further. It''s likely you''re seeing different results, as Firefox is Event.stop()ing in the capture phase, and IE in the bubble phase. TAG tomg-PGZyUNKar/Q@public.gmane.org On Feb 14, 2007, at 1:36 PM, Cyrille wrote:> > Hi there, > > I am trying to set up a DragScrollable window (see > http://wiki.script.aculo.us/scriptaculous/show/DragScrollable) and in > that same window, have a drag and drop effect... > > OK, I know it sounds a bit crazy and I would understand if it is not > possible. > > Anyway, if I remove the drag and drop, it works OK. With the drag and > drop: > > * on Firefox, it still works, but the drag and drop doesn''t work > * on IE7, the drag and drop works, but the DragScrollable doesn''t get > picked up (the whole content is shown) > > Has anyone tried to do something like that? Is it really not possible? > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi there, thanks for your answer. I am not greatly familiar with the details of Javascript event model, but I think I am following what you''re saying. So, basically, there is no way it can be done? Cheers Cyrille On Feb 15, 9:51 am, Tom Gregory <t...-PGZyUNKar/Q@public.gmane.org> wrote:> It''s because DragDrop and DragScrollable both use Event.stop, so the > event isn''t propagating further. It''s likely you''re seeing different > results, as Firefox is Event.stop()ing in the capture phase, and IE > in the bubble phase. > > TAG > t...-PGZyUNKar/Q@public.gmane.org > > On Feb 14, 2007, at 1:36 PM, Cyrille wrote: > > > > > Hi there, > > > I am trying to set up a DragScrollable window (see > >http://wiki.script.aculo.us/scriptaculous/show/DragScrollable) and in > > that same window, have a drag and drop effect... > > > OK, I know it sounds a bit crazy and I would understand if it is not > > possible. > > > Anyway, if I remove the drag and drop, it works OK. With the drag and > > drop: > > > * on Firefox, it still works, but the drag and drop doesn''t work > > * on IE7, the drag and drop works, but the DragScrollable doesn''t get > > picked up (the whole content is shown) > > > Has anyone tried to do something like that? Is it really not possible?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Not without overriding the code for both Draggables/DragScrollable to not Event.stop. Or, perhaps you could do something tricky and override Event.stop (setting a global, and then checking for it at the document level in the bubble phase, for example), but that might cause other problems. TAG On Feb 14, 2007, at 3:48 PM, Cyrille wrote:> > Hi there, > > thanks for your answer. I am not greatly familiar with the details of > Javascript event model, but I think I am following what you''re saying. > > So, basically, there is no way it can be done? > > Cheers > > Cyrille > > On Feb 15, 9:51 am, Tom Gregory <t...-PGZyUNKar/Q@public.gmane.org> wrote: >> It''s because DragDrop and DragScrollable both use Event.stop, so the >> event isn''t propagating further. It''s likely you''re seeing different >> results, as Firefox is Event.stop()ing in the capture phase, and IE >> in the bubble phase. >> >> TAG >> t...-PGZyUNKar/Q@public.gmane.org >> >> On Feb 14, 2007, at 1:36 PM, Cyrille wrote: >> >> >> >>> Hi there, >> >>> I am trying to set up a DragScrollable window (see >>> http://wiki.script.aculo.us/scriptaculous/show/DragScrollable) >>> and in >>> that same window, have a drag and drop effect... >> >>> OK, I know it sounds a bit crazy and I would understand if it is not >>> possible. >> >>> Anyway, if I remove the drag and drop, it works OK. With the drag >>> and >>> drop: >> >>> * on Firefox, it still works, but the drag and drop doesn''t work >>> * on IE7, the drag and drop works, but the DragScrollable doesn''t >>> get >>> picked up (the whole content is shown) >> >>> Has anyone tried to do something like that? Is it really not >>> possible? > > > >--~--~---------~--~----~------------~-------~--~----~ 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 Tom, your comments are really helpful! Cyrille On Feb 15, 12:30 pm, Tom Gregory <t...-PGZyUNKar/Q@public.gmane.org> wrote:> Not without overriding the code for both Draggables/DragScrollable to > not Event.stop. Or, perhaps you could do something tricky and > override Event.stop (setting a global, and then checking for it at > the document level in the bubble phase, for example), but that might > cause other problems. > > TAG > > On Feb 14, 2007, at 3:48 PM, Cyrille wrote: > > > > > Hi there, > > > thanks for your answer. I am not greatly familiar with the details of > > Javascript event model, but I think I am following what you''re saying. > > > So, basically, there is no way it can be done? > > > Cheers > > > Cyrille > > > On Feb 15, 9:51 am, Tom Gregory <t...-PGZyUNKar/Q@public.gmane.org> wrote: > >> It''s because DragDrop and DragScrollable both use Event.stop, so the > >> event isn''t propagating further. It''s likely you''re seeing different > >> results, as Firefox is Event.stop()ing in the capture phase, and IE > >> in the bubble phase. > > >> TAG > >> t...-PGZyUNKar/Q@public.gmane.org > > >> On Feb 14, 2007, at 1:36 PM, Cyrille wrote: > > >>> Hi there, > > >>> I am trying to set up a DragScrollable window (see > >>>http://wiki.script.aculo.us/scriptaculous/show/DragScrollable) > >>> and in > >>> that same window, have a drag and drop effect... > > >>> OK, I know it sounds a bit crazy and I would understand if it is not > >>> possible. > > >>> Anyway, if I remove the drag and drop, it works OK. With the drag > >>> and > >>> drop: > > >>> * on Firefox, it still works, but the drag and drop doesn''t work > >>> * on IE7, the drag and drop works, but the DragScrollable doesn''t > >>> get > >>> picked up (the whole content is shown) > > >>> Has anyone tried to do something like that? Is it really not > >>> possible?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---