Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:28

using popup menus and keypress


Poster: Shap5202
Dated: Wednesday October 19 2005 - 19:17:09 BST

Hey all,
I'm basically trying to simulate the functionality of the Start Button for Windows. If you press a certain button, the menu pops up and then be able to use the arrow keys to navigate it. I've got all the key trapping fine, and the pop up piece, just can't put them together. Here's what i tried...

Code:
var mn = getMenuByName("mainName");
   
   popup("menuName");
      
   for(x = 0; x < _mi.length; x++){
      if(_mi[x][0] == mn){
         itemOn(x);         
         break;
      }
   }


this javascript method is called when the proper key down is detected. It pops up the menu, then searches through the items for the first item on that menu (is there a better way to do that??), and i figured I could just call itemOn() and use the arrow keys from there.

However, when i put the itemOn() call in there, the menu appears, but behind any other menu I have on the screen (like the z-index is not high enough) and the arrow keys do not do anything. W/o the itemOn() call, the menu pops up as expected.

If i open the menu with the mouse 'normally', the keypress module works correctly. Has anyone done this before and am I missing something?

Thanks


Poster: Andy
Dated: Friday October 21 2005 - 13:08:56 BST

Have you got a URL that we can see?

If we can see the problem, should be able to advise further