Welcome Guest, Not a member yet? Register   Sign In
Clickable table rows using Jquery
#8

[eluser]danfloun[/eluser]
Well I simply pulled a few jquery plugins together for the clicking and styling.

I used TableSorter to create sortable data via column clicks.
TableHover to change the row colour on hover to make it easier to see.
I used the jquery function:

Code:
$(".resTable tr:even").addClass('even');

to alternate row colours.

And to make my rows clickable I simply used:

Code:
function Link(url)
  {
  document.location.href = url;

  }

and then on my looping table rows I used:

Code:
onclick="Link('client_detail/<?=$row->id?>');">

Works a treat.
Thanks for all your help.

Danny


Messages In This Thread
Clickable table rows using Jquery - by El Forum - 09-02-2007, 05:18 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 09:30 AM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 09:43 AM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 09:57 AM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 01:01 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 01:33 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 01:41 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 04:20 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 04:57 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 11:48 PM
Clickable table rows using Jquery - by El Forum - 09-04-2007, 12:42 AM
Clickable table rows using Jquery - by El Forum - 09-04-2007, 01:09 AM
Clickable table rows using Jquery - by El Forum - 09-04-2007, 01:16 AM
Clickable table rows using Jquery - by El Forum - 09-11-2007, 06:16 AM
Clickable table rows using Jquery - by El Forum - 09-11-2007, 08:15 AM
Clickable table rows using Jquery - by El Forum - 09-11-2007, 01:02 PM
Clickable table rows using Jquery - by El Forum - 09-11-2007, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB