Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

html navigation using arrows  RSS feed

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just wanted to know if
1) Is it possible to code so as to navigate through a html page using using the 'arrow' keys. Like the 'tab' button except it would go back also.

2)If yes, what would i have to do for this. (Don't need the details)

Thanks
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shift-tab goes back if you did not know that. You want to go from form element to element?

Problems may be what if the user wants to move the cursor in the textbox to change his message. It would not do what the user wants.

Eric
 
Pranav Sharma
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks eric

actually was asked by the client if it was feasible to do this, but I was thinking of similar problems that may occur.

thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible to do it. All you would have to do is have a key listener on the page and detect the arrow keys. Have a little function that determines the next field and focus it.

When I look at the UI, I do not want to change the way it works for the user unless it makes sense. Most people know tab to change form fields,alt w/ arrows to move through history, f5 to refresh, and so on. It may help one person and really screw with the other 100 users.

My 2 cents.

If they really want it, I can help you come up with the code. It is only a few lines long if all of the elements have a tab index on them.

Eric
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!