• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

giving link to an entire table row

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a big problem. i want to give link for an entire table row. So i wrote code like this <a href="..."><tr>....</tr></a>. The thing is that link is working fine, but the link symbol(hand symbol) is not coming. i want link for the entire row. any options...please help.
Thanks in Advance.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pradeep,
You would have to create separate links (to the same href) for the contents of each <td> within your row.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DO NOT PUT A LINK AROUND THE TABLE ROW!! You will casuse trouble in browser trying to render that.

Either you hae to put links around every item

or you can rely on JavaScript.


Heck if you want to make it fancy!


Eric
[ July 16, 2004: Message edited by: Eric Pascarello ]
 
Pradeep Chandrasekharan Nair
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Eric..its working fine now..
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm.. IE 6.0 won't seem to like the javscript until it looks like:

<tr style="cursor ointer"
onclick="document.location.href='#'"
onmouseover="this.style.backgroundColor='#C0C0C0'"
onMouse0ut="this.style.backgroundColor='#FFFFFF'" >

( single quotes around URL, and out, not off.)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!

This little script was nice to use. However I run into a problem, in my table rows I use checkboxes to mark the rows I want to do something with.
The problem is now that I cant mark them anymoore because the page is always updated as soon as I try to mark my checkboxes.

How can I do to work around this problem?

/Daniel
 
Beauty is in the eye of the tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic