By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,155 Members | 718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,155 IT Pros & Developers. It's quick & easy.

Drag & drop between IFRAMEs / Firefox

P: 1
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 to set the data type to "text" at the source, so that the drop operation simply drops a set text string onto a target text entry field.

Under IE, when dragging an object, it is possible to catch the “dataTransfer.setData” event to set up the data to be of 'text' type during the drag. Unfortunately, I wasn't able to find the equivalent in Firefox ...

Is there any way Firefox will implement similar drag'n'drop behavior that works across IFRAME/FRAMEs? To clarify, today I can select text on a Firefox page then drag & drop into any text field: I need to be able drag & drop an object that is not selectable text and cause a text string to be dropped on the target text field.

This is really important for us, and we are more than happy to compensate someone for his time to help out code this if complex ...

Mar 1 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
What kind of objects are you dragging/dropping? Can you give one or two examples? Could you also post your code or, better still, link to a test page.
Mar 2 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.