Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

possible to prevent select all on double click?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PJ6 - 19 Sep 2007 14:10 GMT
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
Just Me - 19 Sep 2007 15:53 GMT
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

}

> 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
PJ6 - 19 Sep 2007 18:29 GMT
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

> This is a client issue
>
[quoted text clipped - 16 lines]
>>
>> Paul
ThunderMusic - 19 Sep 2007 18:39 GMT
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

>I don't want to annoy the user with alert('Be Patient Please') on every
>double click, nor do I want to submit anything.
[quoted text clipped - 25 lines]
>>>
>>> Paul
PJ6 - 19 Sep 2007 20:32 GMT
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

> hi,
> Actually, changing the default behavior of the browser may annoy the user
[quoted text clipped - 5 lines]
>
> ThunderMusic

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.