Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > possible to prevent select all on double click?

Reply
Thread Tools

possible to prevent select all on double click?

 
 
PJ6
Guest
Posts: n/a
 
      09-19-2007
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


 
Reply With Quote
 
 
 
 
Just Me
Guest
Posts: n/a
 
      09-19-2007
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" <> wrote in message
news:eJata8r%...
> 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
>



 
Reply With Quote
 
 
 
 
PJ6
Guest
Posts: n/a
 
      09-19-2007
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.com> wrote in message
news:eovvY0s%...
> 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" <> wrote in message
> news:eJata8r%...
>> 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
>>

>
>



 
Reply With Quote
 
ThunderMusic
Guest
Posts: n/a
 
      09-19-2007
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" <> wrote in message
news:OnEBsMu%...
>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.com> wrote in message
> news:eovvY0s%...
>> 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" <> wrote in message
>> news:eJata8r%...
>>> 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
>>>

>>
>>

>
>



 
Reply With Quote
 
PJ6
Guest
Posts: n/a
 
      09-19-2007
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" <> wrote in message
news:e9QW$Qu%...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does ipsec double acl check really prevent me to configure proper antispoofing???? mckennan Cisco 0 09-01-2005 03:00 PM
cannot convert parameter from 'double (double)' to 'double (__cdecl *)(double)' error Sydex C++ 12 02-17-2005 06:30 PM
Submit button to select all items in a SELECT menu Gumtree Javascript 3 11-10-2004 01:45 PM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 PM
implement "select all" button to select all checkboxes Matt ASP General 2 01-11-2004 01:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57