keypress.js

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
twing
Advanced
Advanced
Posts: 15
Joined: Wed Apr 20, 2005 7:17 am

keypress.js

Post by twing »

I have a drop down menu using keypress.js to make the menu accessible through tab key.

When the page displayed by the browser, pressing tab doesn't make the menu highlighted.
It only works if I hover the mouse on the menu first (to make the menu appear).

Has anyone get the same problem?

Thanks for the help,
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Could you possibly post a test page so we can see what's happening? What do you mean by doesn't make the menu highlight unless you hover over it to make it appear? Are you talking about page highlighting are you talking about the submenus? When I try using it, it opens the submenus of the item when I use the tab. So, we'd need to see your page to see what is going on.

Ruth
shong
Advanced
Advanced
Posts: 24
Joined: Wed May 04, 2005 5:37 pm
Location: Bellevue, WA
Contact:

Post by shong »

I have a similar issue. My menu is set up so the user has to click on it to display the menu items. So unless the menu item is displayed by clicking on it first, the tag does not work.

Do I have to set it up so the menu items are displayed when you hover over it before the tab will work?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

The keypress will still work when the menus are set to open on click, however to make it work when a menu is highlighted by keypress and has a submenu that opens on click, then the person has to hit enter to have it open. That means that you have to 1) somehow notify a person when they are on a menu with a submenu, and 2) that they have to hit enter to see the submenu.


In reality, though the keypress will work with openonclick if the above is done, you probably would be best to have the menus open on mouseover.

I don't know if it would be possible to have some kind of javascript function that would turn the openonclick property off if the menu is being perused by tab using the keyaccess, but that's something you might check out.

Ruth
twing
Advanced
Advanced
Posts: 15
Joined: Wed Apr 20, 2005 7:17 am

Fixed

Post by twing »

The tabbing works if the url property exist. I used clickfunction. Thanks for the keypress.js.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Thanks for the info, Twing. I never thought to put in a url :oops:

It's nice when the info gets posted so others can see :D

Ruth
Post Reply