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! 4 7726
dwhalen wrote:
<img src="Images/TreeIcons/file.gif" border="0"
onDragStart="event.dataTransfer.setData('text', '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()
ondragstart and event.dataTransfer are currently supported by IE only I
think. Mozilla does not support that.
--
Martin Honnen http://JavaScript.FAQTs.com/
Is there a way to hot-wire such code? For example, if I can get the
drag to actually
go, then I can maybe take it from there.
I see a lot of examples of people that can get stuff to drag in
Firefox, but I can't make
any of them work for some reason. I know that Firefox doesn't support
it, but surely
a workaround is possible....
Thanks!
On Jan 29, 1:33 pm, Martin Honnen <mahotr...@yahoo.dewrote:
dwhalen wrote:
<img src="Images/TreeIcons/file.gif" border="0"
onDragStart="event.dataTransfer.setData('text', '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()ondragstart and event.dataTransfer are currently supported by IE only I
think. Mozilla does not support that.
--
Martin Honnen http://JavaScript.FAQTs.com/
On Jan 31, 4:25 am, "dwhalen" <dwha...@enr-corp.comwrote:
Is there a way to hot-wire such code? For example, if I can get the
drag to actually
go, then I can maybe take it from there.
Please don't top-post here, reply below trimmed quotes.
I see a lot of examples of people that can get stuff to drag in
Firefox, but I can't make
any of them work for some reason. I know that Firefox doesn't support
it, but surely
a workaround is possible....
There are many "draggable" libraries out there, here's a few that work
well in modern browsers:
YAHOO! UI
<URL: http://developer.yahoo.com/yui/dragdrop/ >
FORK
<URL: http://forkjavascript.org/drag/tests >
WalterZorn
<URL: http://www.walterzorn.com/dragdrop/dragdrop_e.htm >
--
Rob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: wayne |
last post by:
I found the following script to copy text to the client clipboard but
it is not working in Firefox (works fine in IE 6). Can anyone suggest
what I need to change?
...
|
by: nAmYzArC |
last post by:
Hello every1,
I have a "<DIV" tag with contenteditable turned on. I am using this as
an area that users can either paste or drag/drop text into. The text
can come from other browser windows and of...
|
by: pamelafluente |
last post by:
Hi, I am invoking Firefox, and for testing IE, from my VB program. The
instruction are of this kind:
Process.Start("IExplore.exe", Parameter)
Process.Start("Firefox.exe", Parameter)
where...
|
by: Pontifex |
last post by:
Hi all,
I heard or read that the next version of HTML will provide
long-overdue drawing commands.
Which version of Firefox, Opera or IE supports such
new fancy stuff?
Thanks!
|
by: rakeshvthu |
last post by:
hi all,
i am new bee to script and some how i find code to clear data of clipboard it is working fine for IE browser not for Firefox can any one help me out what all we need to change in...
|
by: apple27 |
last post by:
Hi,
Appreciate your guys help..
Im a newbie in OWC.Trying to search for OWC objects to complete a few charts. Still having difficulty on this :-
My questions:
1. I need to come out with a...
|
by: nagar |
last post by:
I have a .NET 2.0 application that needs to backup and restore the
contents of the clipboard.
When I back it up, I use this code:
DataObject oldClipboard = Clipboard.GetDataObject();...
|
by: hari |
last post by:
Hi all,
I need to automate printer command testing, prinetr supports
parallel/
serial/USB.How can i send the commands from python to printer.
I have got pyparallel, as am new to python, no...
|
by: patrickq |
last post by:
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |