473,395 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

possible to prevent select all on double click?

PJ6
Is there a way to prevent the double-click event on an element from causing
IE6 to select everything? Cancelling the event doesn't work.

Paul
Sep 19 '07 #1
4 2132
This is a client issue

U need to use javascript to detect the double click,

var sumbitted = false;

<yourButton onLick="javacript:AsumbmitFunction()";

function AsumbitFunction()
{

if ( submitted ) { alert('Be Patient Please');} else { submitted=true;
__doSubmit( . . . . . .. etc

}
"PJ6" <no***@nowhere.netwrote in message
news:eJ***************@TK2MSFTNGP05.phx.gbl...
Is there a way to prevent the double-click event on an element from
causing IE6 to select everything? Cancelling the event doesn't work.

Paul

Sep 19 '07 #2
PJ6
I don't want to annoy the user with alert('Be Patient Please') on every
double click, nor do I want to submit anything.

Maybe my question was not clear... I have no intrest at all in submitting a
form; I want to stop the browser from automatically selecting text in an
element that has been double-clicked.

Paul

"Just Me" <news.microsoft.comwrote in message
news:eo****************@TK2MSFTNGP06.phx.gbl...
This is a client issue

U need to use javascript to detect the double click,

var sumbitted = false;

<yourButton onLick="javacript:AsumbmitFunction()";

function AsumbitFunction()
{

if ( submitted ) { alert('Be Patient Please');} else { submitted=true;
__doSubmit( . . . . . .. etc

}
"PJ6" <no***@nowhere.netwrote in message
news:eJ***************@TK2MSFTNGP05.phx.gbl...
>Is there a way to prevent the double-click event on an element from
causing IE6 to select everything? Cancelling the event doesn't work.

Paul


Sep 19 '07 #3
hi,
Actually, changing the default behavior of the browser may annoy the user as
much as an alert box. IMHO, If the user is used to double-click to select
everything and you change this behavior, the user will feel it's not right..
at least, I'd do.

I hope it helps (a bit)

ThunderMusic
"PJ6" <no***@nowhere.netwrote in message
news:On****************@TK2MSFTNGP03.phx.gbl...
>I don't want to annoy the user with alert('Be Patient Please') on every
double click, nor do I want to submit anything.

Maybe my question was not clear... I have no intrest at all in submitting
a form; I want to stop the browser from automatically selecting text in an
element that has been double-clicked.

Paul

"Just Me" <news.microsoft.comwrote in message
news:eo****************@TK2MSFTNGP06.phx.gbl...
>This is a client issue

U need to use javascript to detect the double click,

var sumbitted = false;

<yourButton onLick="javacript:AsumbmitFunction()";

function AsumbitFunction()
{

if ( submitted ) { alert('Be Patient Please');} else { submitted=true;
__doSubmit( . . . . . .. etc

}
"PJ6" <no***@nowhere.netwrote in message
news:eJ***************@TK2MSFTNGP05.phx.gbl...
>>Is there a way to prevent the double-click event on an element from
causing IE6 to select everything? Cancelling the event doesn't work.

Paul



Sep 19 '07 #4
PJ6
If it's a grid control asking the user to double-click on an item to
navigate to its details tab, then the auto-selection behavior looks really
ugly; it often selects text outside the grid and half the rest of the page,
even after an AJAX response has already replaced much of the render of what
the user was looking at. In this context, the default behavior of the
browser isn't even remotely what a user expects.

Paul

"ThunderMusic" <No*************************@NoSpAm.comwrote in message
news:e9****************@TK2MSFTNGP05.phx.gbl...
hi,
Actually, changing the default behavior of the browser may annoy the user
as much as an alert box. IMHO, If the user is used to double-click to
select everything and you change this behavior, the user will feel it's
not right.. at least, I'd do.

I hope it helps (a bit)

ThunderMusic

Sep 19 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: QWERTY | last post by:
--------------Boundary-00=_O5I3QL80000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_O5I3LVC0000000000000" --------------Boundary-00=_O5I3LVC0000000000000...
2
by: Ram | last post by:
I have a console application that brings up a dialog if invoked with no command line parameters. If I double click on my application a console window is briefly displayed before the dialog appears...
3
by: Paweł | last post by:
I'm desinging a graphical interface and I frequently take advantage of the double click event. Unfortunately in most browsers double clicking also involves selecting and I would like to avoid that...
6
by: John Bowman | last post by:
Hi All, I must be missing something really obvious, so I'd appreciate someone helping me out. I have a simple Windows form that currently only has a title bar (aka the Text Property is set) and...
3
by: Anders K. Jacobsen [DK] | last post by:
Hi im building a administraive application (primary) CRUD. But how do i prevent users not to double click on eg a insert button? I would be great the have uniform way to deal with this since I...
23
by: mosesdinakaran | last post by:
Hi All, I need a small clarification in submitting the forms, Ur suggestions please. In a page I have two form and also two submit butons. (ie)
0
by: josephkorn | last post by:
Hi all. I have a problem in my website in trying to prevent a user from double submitting the form. I am calling a subroutine from my page_load event that passes in the commandbutton that I want...
2
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2 for a windows application. I have a richtextbox control on my form that I make it readonly. 1. Do I need to make readonly to be false to append text to it? 2. Even...
1
by: thetechgeek | last post by:
Hey all, I've created a pretty nice-looking drop-down menu, and I need to prevent users form highlighting the text in the menu item, because it looks kind of ugly. Here's an snippet of my menu...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
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...

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.