D
dwhalen
Hi Everyone.
I'm new to drag-and-drop, and I'm running into a problem getting some
code I found to work in FireFox. I have a third-party Tree control
that accepts droppable items that implement the setData and getData
methods. In IE6/7
the following code is draggable:
<img src="Images/TreeIcons/file.gif" border="0"
onDragStart="event.dataTransfer.setData('text', '2|16|190');" />
I'm able to drag it right onto the tree and get the needed value "2|16|
190"
When I load the same code in Firefox I can't get the image to drag at
all, and therefore I don't know if it'll even
drop. If I can get it to drop, I need to be sure I can use
dataTransfer.getData()
Can anyone point me in the right direction to get this working?
Thanks so much!
I'm new to drag-and-drop, and I'm running into a problem getting some
code I found to work in FireFox. I have a third-party Tree control
that accepts droppable items that implement the setData and getData
methods. In IE6/7
the following code is draggable:
<img src="Images/TreeIcons/file.gif" border="0"
onDragStart="event.dataTransfer.setData('text', '2|16|190');" />
I'm able to drag it right onto the tree and get the needed value "2|16|
190"
When I load the same code in Firefox I can't get the image to drag at
all, and therefore I don't know if it'll even
drop. If I can get it to drop, I need to be sure I can use
dataTransfer.getData()
Can anyone point me in the right direction to get this working?
Thanks so much!