Alain Ravet
2007-Feb-16 20:15 UTC
drag to/insert_html into another window : is is possible?
Hi, I''d like to build an interface where users drag objects from a main window to a separate/child one, and the other way around, from the child window into the master window. Is this possible? TIA Alain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ken Snyder
2007-Feb-17 00:02 UTC
Re: drag to/insert_html into another window : is is possible?
Alain Ravet wrote:> Hi, > > I''d like to build an interface where users drag objects from a main > window to a separate/child one, and the other way around, from the > child window into the master window. > > Is this possible? > > TIA > > Alain >I don''t believe it is possible to capture drag events between windows, but it is certainly possible to create a pop-up looking div that acts like a window but enables dragging elements and/or receiving dragged elements. There are several popular JavaScript libraries that create such pop-looking divs. Here are a few: http://prototype-window.xilinus.com/ http://www.brainjar.com/dhtml/windows/demo.html http://errorcoding.com/demo/jsWindows/ --Ken Snyder --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Alain Ravet
2007-Feb-19 14:38 UTC
Re: drag to/insert_html into another window : is is possible?
Ken, Thanks, that technique works fine that way (with prototype-window). The only problem is that it''s one more 60k javascript library to send to the browser, but that will do for now. Alain > it is certainly possible to create a pop-up looking div that acts > like a window but enables dragging elements and/or receiving dragged > elements. There are several popular JavaScript libraries that create > such pop-looking divs. Here are a few: > > http://prototype-window.xilinus.com/ > http://www.brainjar.com/dhtml/windows/demo.html > http://errorcoding.com/demo/jsWindows/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---