472,093 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,093 software developers and data experts.

Drag & drop between IFRAMEs / 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 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 ...

Thanks,
Patrick
Mar 1 '08 #1
1 3563
acoder
16,027 Expert Mod 8TB
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.

Similar topics

1 post views Thread by Ryan Stewart | last post: by
6 posts views Thread by hemant_mishal | last post: by
6 posts views Thread by jojobar | last post: by
3 posts views Thread by VB Programmer | last post: by
8 posts views Thread by ericgorr | last post: by
2 posts views Thread by sebastian.janoschka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.