Forum Moderators: open

Message Too Old, No Replies

FF Table Cell Selecting

         

trevordixon

4:49 pm on Jun 19, 2006 (gmt 0)

10+ Year Member



I'm trying to make a table where the user can click a row of a table and it will "select" it by highlighting it, and they can select multiple rows with the ctrl and shift keys. It works, but in Firefox, holding the ctrl key and clicking a table cell puts a little blue border around it and selects it. How do I disable this?

AWildman

8:29 pm on Jun 19, 2006 (gmt 0)

10+ Year Member



Have you tried setting the border to none for that table's cells?

Robin_reala

10:08 am on Jun 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just had a play around with this and it appears that the effect is hardcoded - setting border and outline to none doesn't have any affect even with!important tacked on. Doesn't seem to be anything in about:config either. I don't have time to go digging through the MDC wiki or source atm but I'd suggest that's your next port of call.

vincevincevince

11:12 am on Jun 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to cancel event bubbling once you have caught the click. Plenty of code to do that with a Google search.