PDA

View Full Version : Document and element question



Tohaki
08-25-2008, 08:35 AM
I have a dataTable in JSF with a JavaScript function that highlights a row. I have another JavaScript function that recognizes when the up and down arrow keys are pressed. Both these functions are in what I believe is called a prototype object.

What I want to achieve is to highlight the row above or below depending on which arrow key is pressed. Can I store the element from the first JavaScript and somehow use it to traverse the document in the second?

Any help would be greatly appreciated!

codeexploiter
08-25-2008, 08:55 AM
Can you provide a link or the source to get an idea?

mburt
08-25-2008, 01:30 PM
Can I store the element from the first JavaScript and somehow use it to traverse the document in the second?

Cookies.

Tohaki
08-27-2008, 11:58 AM
Ok, I figured out how to do it, with a little help, but thanks for answering by post. :)