Maninder, Singh
2005-Sep-20 23:55 UTC
[Rails-spinoffs] Tabular structure where you can use keyboard to navigate up and down
Need some help in creating a table structure such that I can use the keyboard up/down keys to move through the rows. Can anyone give me a pointer to this? So, if I have 5 row in the table, I want to be able to use my keyboard to go up and down and select every row (without using the mouse). Thanks, Mandy. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050920/855bee4a/attachment.html
Laurie Harper
2005-Sep-21 13:19 UTC
[OT] [Rails-spinoffs] Tabular structure where you can use keyboard to navigate up and down
Table rows aren''t selectable in HTML; you''ll need a combination of CSS and Javascript to simulate that behaviour. Define a CSS style to highlight a ''selected'' row, then attach Javascript to the onclick and onkeypress even handlers for your table rows to add/remove the ''selected'' CSS class to table rows as appropriate. L. On 20-Sep-05, at 11:30 PM, Maninder, Singh wrote:> > Need some help in creating a table structure such that I can use > the keyboard up/down keys to move through the rows. > > Can anyone give me a pointer to this? > > So, if I have 5 row in the table, I want to be able to use my > keyboard to go up and down and select every row (without using the > mouse). > > Thanks, > Mandy. > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Laurie Harper Open Source advocate, Java geek: http://www.holoweb.net/laurie Founder, Zotech Software: http://www.zotechsoftware.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050921/5c8c8976/attachment.html