File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Scroll Rows of a Table One at a Time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

Scroll Rows of a Table One at a Time

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have been struggling to use keyboard keys to scroll rows of a table up or down one at a time (I have a vertical scrollbar at right hand side of a table.)

I first highlight the first row of the table when the page is loaded. It is working now.

Then, I tried to work out some JavaScript code to move the highlighter up or down by pressing the keyboard up arrow key or down arrow key. The code is not working. Would someone kindly take a look at the code:

[ July 02, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

Please continue any discussion in the original post on this topic.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Scroll Rows of a Table One at a Time
jQuery in Action, 3rd edition