I am quite disappointed in the drag ''n'' drop support in Mozilla Firefox. What am trying to achieve is dragging an element from one IFRAME/FRAME into another IFRAME/FRAME. But upon dropping the element, I do not want the target IFRAME/FRAME to open/load it. I want it simply to handle the event, such as parsing the element/data dropped. Such uses as dropping an element into a table inbetween rows 2 & 3. I have studied Netscapes way of ondragdrop events. However this only handles dropping external files, into the browser window, and the browser window will open/load the file. This is not what I want. The only closest IE/FF drag''n''drop thing I found was http://script.aculo.us/ however their dragging doesn''t go across IFRAME/FRAMEs. Is there any way to implement scriptaculous/rails to do something similar drag''n''drop events as IE''s: ondragenter, ondragleave, ondragover, ondrop? that works across IFRAME/FRAMEs? _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
No, you cannot do that. Dragging into window instances across others should not allow this for security reasons anyhow. It would be cool though, as then you could drag draggables from one window to another. This has nothing to do with Mozilla Firefox. Dhruba Bandopadhyay wrote:> I am quite disappointed in the drag ''n'' drop support in Mozilla Firefox. > What am trying to achieve is dragging an element from one IFRAME/FRAME > into another IFRAME/FRAME. But upon dropping the element, I do not want > the target IFRAME/FRAME to open/load it. I want it simply to handle the > event, such as parsing the element/data dropped. Such uses as dropping > an element into a table inbetween rows 2 & 3. > > I have studied Netscapes way of ondragdrop events. However this only > handles dropping external files, into the browser window, and the > browser window will open/load the file. This is not what I want. > > The only closest IE/FF drag''n''drop thing I found was > http://script.aculo.us/ however their dragging doesn''t go across > IFRAME/FRAMEs. > > Is there any way to implement scriptaculous/rails to do something > similar drag''n''drop events as IE''s: > > ondragenter, ondragleave, ondragover, ondrop? that works across > IFRAME/FRAMEs? > > _________________________________________________________________ > Don’t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
sam-WNdku5qRq3FWk0Htik3J/w@public.gmane.org
2006-Jun-26 19:13 UTC
Re: Drag''n''drop DOM elements between (I)FRAMEs
I have *heard* of people doing this by using the parent window to store and mediate state between the 2 child iframe windows. So when a drag was in progress, and the mouse coord reached the edge of the iframe window, you would notify the other iframe to start listening for mouseover events and create the illusion of a seamless "drag". But I''ve never actually seen it done - and as you can imagine it would be prone to all kinds of problems with missed events. Also, it should go without saying that all partipating documents would have to be under the same domain. Sam -i-am Quoting Lindsey Simon <lsimon-kAMMLXQ8Af9Wk0Htik3J/w@public.gmane.org>:> No, you cannot do that. Dragging into window instances across others > should not allow this for security reasons anyhow. It would be cool > though, as then you could drag draggables from one window to another. > This has nothing to do with Mozilla Firefox.