Prevent selection

Discussion in 'ASP .Net' started by Chris Zopers, Jun 23, 2008.

  1. Chris Zopers

    Chris Zopers Guest

    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 ***
    Chris Zopers, Jun 23, 2008
    #1
    1. Advertising

  2. 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 ***
    Microsoft Newsserver, Jun 23, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Niederberger
    Replies:
    2
    Views:
    16,499
    Christian Kaufhold
    Jan 7, 2005
  2. Andrew Crowe
    Replies:
    1
    Views:
    4,460
    Andrew Crowe
    Sep 13, 2004
  3. Replies:
    4
    Views:
    714
  4. curiousity

    HOWTO autopost the selection list upon selection

    curiousity, Nov 21, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    267
    curiousity
    Nov 21, 2003
  5. Fnord Nase

    Prevent text selection after double click

    Fnord Nase, Apr 20, 2007, in forum: Javascript
    Replies:
    6
    Views:
    194
    Elegie
    Apr 21, 2007
Loading...

Share This Page