Results 1 to 4 of 4

Thread: Document and element question

  1. #1
    Join Date
    Aug 2008
    Location
    Western Europe
    Posts
    17
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Document and element question

    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!

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Can you provide a link or the source to get an idea?

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Can I store the element from the first JavaScript and somehow use it to traverse the document in the second?
    Cookies.
    - Mike

  4. #4
    Join Date
    Aug 2008
    Location
    Western Europe
    Posts
    17
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Ok, I figured out how to do it, with a little help, but thanks for answering by post.

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
  •