I have a grid with two <tbody> pairs. (I need to be able to hide either section of the table). I'm allowing the user to navigate between cells of the grid using their keyboard.
When I key up (up arrow) or down (down arrow) within the same tbody, the cursor moves around like a charm. But when I get to the first row of the bottom tbody or the bottom row of the top tbody, the cursor moves no further. Here's a snippet: (for up arrow - it's similar to down arrow): this.up('tr').previous('tr').down('input[type="text"]').activate(); if you have a grid like this: <table> <thead> <tr> <th>column 1</th> <th>column 2</th> </tr> </thead> <tbody id="topsection"> <tr> <th>row 1</th> <td><input type="text"></td> </tr> <tr> <th>row 2</th> <td><input type="text"></td> </tr> </tbody> <tbody id="bottomsection"> <tr> <th>row 3</th> <td><input type="text"></td> </tr> <tr> <th>row 4</th> <td><input type="text"></td> </tr> </tbody> </table> If the cursor is in the text field for row 3, the up-arrow won't move the cursor to row 2. Likewise if the cursor is in the text field for row 2, the down-arrow won't move the cursor to row 3. Any ideas? Thanks, Jon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---