SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard Busch's Avatar
    Join Date
    Jan 2004
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Prevent row selection when link is clicked within row

    Hi,

    I have the following page: http://ericbusch.net/sitepoint/test-js.html

    A row is highlighted when you click the row or check the checkbox. This is the appropriate behavior.

    But, is it possible to prevent the row from being highlighted when the link is clicked? If so, how can I do it?

    Thanks,

    Eric

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    151 Post(s)
    Tagged
    3 Thread(s)
    Hi Eric,

    What do you want to happen when the link is clicked?
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Wizard Busch's Avatar
    Join Date
    Jan 2004
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When the link is clicked a pop-up window opens and displays details about the link.

    I don't want the user to check the box by clicking the link because it will lead to their confusion. ("wait, i just wanted to see the details and not check the box until after i have read the details")

  4. #4
    SitePoint Wizard Busch's Avatar
    Join Date
    Jan 2004
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone help with this?

    Thanks,
    Eric

  5. #5
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    stop the event (click) from bubbling from the link's click handler,
    or return false from the row click handler if the event target/srcElement is a link.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •