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="ev ent.dataTransfe r.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.ge tData()
Can anyone point me in the right direction to get this working?
Thanks so much! 4 7748
dwhalen wrote:
<img src="Images/TreeIcons/file.gif" border="0"
onDragStart="ev ent.dataTransfe r.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.ge tData()
ondragstart and event.dataTrans fer 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...@yaho o.dewrote:
dwhalen wrote:
<img src="Images/TreeIcons/file.gif" border="0"
onDragStart="ev ent.dataTransfe r.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.ge tData()ondragst art and event.dataTrans fer 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?
=================================================
function copy_clip(mytext){
if (window.clipboardData)
{
// IE
window.clipboardData.setData("Text", mytext);
|
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 course can contain HTML.
Users will typically just click CTRL+A to select an entire web page and
then either copy/paste or drag/drop into this div. There's really no
code for all this other than specifying "contenteditable" in the div
Tag, and...
|
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 Parameter is a string with the path of the web page:
Parameter="C:\Documents and Settings\User\Desktop\Visual Studio
Projects\Test\bin\Html\webpage.htm"
|
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 order to work it for Firefox it is preety urgent.................
function fnClearData(){
var content = clipboardData.getData("Text");
window.clipboardData.clearData('HTML');
document.onmousedown = fnDisable
}
| |
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 chart - 2 data fields.
ChartSpace3.SetData e.chDimValues, e.chDataBound, "Goal"
ChartSpace3.SetData e.chDimValues, e.chDataBound, "Percentage"
|
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();
IDataObject prevClipboard = new DataObject();
string formats;
formats = oldClipboard.GetFormats(); //gets all the possible formats
|
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 idea how to work on
it.
Please give some tips,The comamnd to be sent to the printer is hex
data "1B 40".please give a example,it will be grateful.
|
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 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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |