By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,509 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

disable double-click selection

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"ManoDestra" <ap*****@ntlworld.com> wrote in message news:<9O******************@newsfep1-win.server.ntli.net>...
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.ondblclick = someFunction;

function someFunction() {
//Put your code here to open a new window and see if it works.
}

Peter.

"yair" <ya***********@hotmail.com> wrote in message
news:c7*************************@posting.google.co m...
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


thanks for the response.
i m just asking how can i unselect when a text is selected.
yair
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.