473,671 Members | 2,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabled default drag-drop in Firefox designMode

1 New Member
I'm building a javascript WYSIWYG editor using designMode. My main problem right now is that I'm trying to create dragging functions for certain classes of divs, but Firefox's own designMode drag-drop functionality keeps getting in the way.

I managed to disable the similarly-annoying resizing feature using:
execCommand("en ableObjectResiz ing", false, "false")

But I can't seem to find something equivalent to disable drag-drop. If it can be disabled on individual divs, or a class of divs, that would be the best. But even a way to disable it globally would be an improvement. I'd also like to get rid of that annoying four-arrows icon that shows when I'm editing text in a positioned div.

Please help.

-Gilan
Apr 8 '08 #1
1 2401
acoder
16,027 Recognized Expert Moderator MVP
I've not tried it, so no idea if it will work, but you can try setting document.onmous edown to null which would normally start the drag functionality.
Apr 9 '08 #2

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

Similar topics

2
1616
by: Jason Charalambides | last post by:
Could someone please tell me how I can get a slider disabled? I click on "enable" and turn it to "false", I save my project, I close the VB6, then when I open it the next day, the sliders are enabled! I had to compile and make an executable and every time I open the project I need to re-disable the slider functions before compiling. Of course I can do that but it is rather annoying to do it over and over without being able to keep those...
4
5296
by: Patrick L. Nolan | last post by:
Our Tkinter application has a big ScrolledText widget which is a log of everything that happens. In order to prevent people from making changes, we have it in DISABLED mode except when the program wants to write a new entry. This works OK, except that sometimes we want to copy out of piece of the contents and paste it in another window. When it's DISABLED, it appears that we can't even select a portion of the text. Is this an...
24
7412
by: Lovely Angel | last post by:
Dear Friends Hope you doing great. I have recently shifted to a webhost which is Using Windows 2003 and IIS 6. Now my application was working fine earlier but now I am facing this problem Server.MapPath() error 'ASP 0175 : 80004005' Disallowed Path Characters /backend/_add_two.asp, line 103
5
2470
by: Mark Hannon | last post by:
I have been researching the "disabled" property for form data and wanted to know: - Does the disabled property supress the form item from being submitted? - Can the disabled property be applied when the submit button is pressed? I am designing a PayPal order page that will have 4 items, each with a 3-character text box where the customer will enter quantity. The default value will be "0." I want to be able to test whether the
11
1587
by: kiran | last post by:
I am trying to implement a rubber band/image selection script. For that I need to remove the default drag behaviour on an image. I am able to do this in IE but not Netscape. Does any one have a solution? Pls look below for IE code: var moz = ((document.all)? false : true); var ie = ((document.all)? true : false); var ElementUtil = new Object(); ElementUtil.addEventListener = function(o, type, handler) {
1
1543
by: kiran | last post by:
I am trying to implement a rubber band/image selection script. For that I need to remove the default drag behaviour on an image. I am able to do this in IE but not Netscape. Does any one have a solution? Pls look below for IE code: var moz = ((document.all)? false : true); var ie = ((document.all)? true : false); var ElementUtil = new Object(); ElementUtil.addEventListener = function(o, type, handler) {
0
1003
by: Jude Upperman | last post by:
Is there a new virus going around? view application at www.jupperman.com/flashcard. I copied the flashcard example from the MCSD Self-Paced Training Kit for Web Applications and posted it on my web site. A week later, I decided to include a "change preferences" menu. I drag-dropped the labels and textboxes and ran the application to see how it looked. I tried entering a number in the answer textbox and hit the enter key, an
10
1526
by: David Lee Conley | last post by:
When I open the Data Sources window and create a new data source, everything works fine. But if I have a form showing in the IDE, the Data Sources window becomes disabled and doesn't display any of the database components. Yet, when I switch to code view, I can see everything just fine. Does anyone have any idea why the Data Sources window becomes disabled when I'm viewing forms? TIA.
3
4002
by: mycall | last post by:
I had a quick look but couldnt find much on this. What i have is a contiunous form with each row having an 'edit' button. By default all feilds have been set to disabled to stop the user acciddently changing data in the bound tables. Im using code along with MS built in conditional formatting so when the user clicks the edit button on a particular row it makes all the controls enabled for that row and they can then edit the data. My...
2
4462
by: =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= | last post by:
HI there. I use IE7. We have a user with bad eyesight. he cannot read the font when IE makes an input disabled (the light grey color font). I am able to change the background to a different color to white to try and increase a contrast, but he still cant read it. Does anyone know a workaround to override this font behaviour when an input is disabled="disabled" ???
0
8478
marktang
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...
0
8397
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,...
1
8599
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,...
0
8670
tracyyun
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...
0
7439
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6230
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2813
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
2
2052
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.