disable double-click selection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yair

    disable double-click selection

    hey all
    i have a page with a table, and when the user doubleclicks a row in
    it, a window is opened. The problem is, if he doubleclicked a text in
    the row, it's becoming selected.
    what i want is to disable the selection upon doubleclicking, but no
    the selection at all (so that the user can still just use the mouse to
    select some text in the table).
    is there a javascript command that can disable the selection currently
    highlighted?
    thanks
    yair
  • yair

    #2
    Re: disable double-click selection

    "ManoDestra " <ap.lamb@ntlwor ld.com> wrote in message news:<9OtSa.108 1$wN3.45408@new sfep1-win.server.ntli .net>...[color=blue]
    > The simple answer is don't use double click. Use the click event instead or
    > add an extra column with a link in it to open a new window. I would never
    > use a double click event as it is often used in browsers for other things.
    > Not sure if setting the DoubleClick event for the window would work, but you
    > could try.
    >
    > window.ondblcli ck = someFunction;
    >
    > function someFunction() {
    > //Put your code here to open a new window and see if it works.
    > }
    >
    > Peter.
    >
    > "yair" <yair_ben_meir@ hotmail.com> wrote in message
    > news:c73cd9a.03 07152319.3199fc 36@posting.goog le.com...[color=green]
    > > hey all
    > > i have a page with a table, and when the user doubleclicks a row in
    > > it, a window is opened. The problem is, if he doubleclicked a text in
    > > the row, it's becoming selected.
    > > what i want is to disable the selection upon doubleclicking, but no
    > > the selection at all (so that the user can still just use the mouse to
    > > select some text in the table).
    > > is there a javascript command that can disable the selection currently
    > > highlighted?
    > > thanks
    > > yair[/color][/color]

    thanks for the response.
    i m just asking how can i unselect when a text is selected.
    yair

    Comment

    Working...