Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Prevent selection

Reply
Thread Tools

Prevent selection

 
 
Chris Zopers
Guest
Posts: n/a
 
      06-23-2008
Hello,

I have a html table in which selection is prevented by using
onselectstart="return false;". This way, the user can't select anything
in the table with the mouse or with the shift+arrow keys.

But in one table cell I need to re-activate the selection possibility
again. I don't know how to do that, adding onselectstart="return true;"
to the cell does not work.

Anyone knows how to do this?

Greetings,
Chris


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Microsoft Newsserver
Guest
Posts: n/a
 
      06-23-2008
Perhaps adding and removing the handler programatically would do the trick.



"Chris Zopers" <> wrote in message
news:%23rDp%...
> Hello,
>
> I have a html table in which selection is prevented by using
> onselectstart="return false;". This way, the user can't select anything
> in the table with the mouse or with the shift+arrow keys.
>
> But in one table cell I need to re-activate the selection possibility
> again. I don't know how to do that, adding onselectstart="return true;"
> to the cell does not work.
>
> Anyone knows how to do this?
>
> Greetings,
> Chris
>
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
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
selection structure nested within another selection structure 4Ankit@gmail.com Javascript 1 12-07-2006 11:47 AM
JTable with row selection, but no cell selection Simon Niederberger Java 2 01-07-2005 04:17 PM
JS comparing innerHTML to text selection (window.getSelection() /document.selection) Andrew Crowe HTML 1 09-13-2004 02:22 PM
How to change a range selection to text selection? Loebb Javascript 0 02-23-2004 02:12 PM
HOWTO autopost the selection list upon selection curiousity ASP .Net Mobile 0 11-21-2003 12:57 AM



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