views:

267

answers:

1

I'm trying to implement html table row selection in IE7 and FF3.

When user clicks on the row with ctrl key, he can select separate rows. When he clicks with shift key he can select rows range (so in other words: I'm trying to implement items selection like in the select box or in file explorer). I have javascript for highlighting selected rows, and I'm monitoring onClick event on table rows.

In FF3 I had problems with CTRL key and cell selection, and I solved it with hack from: http://www.quirksmode.org/css/selection.html In IE7 when I click on the table cell with ctlr key, a text is being selected. How to suppress this behaviour?

Another problem is that IE7 with shift key selects all elements from the page (not only table rows) (it works fine in FF).