onkeypress
2006/02/07 18:47
Viewed 2818 times
Replies: 1/5
by Greg

I have what I think is probably a very simple question. Since the dynarch menu can handle html then I should easily be able to add an onkeypress to my <li> element.

In that event I want to trigger the closing of the dynarch menu just as if I had clicked off the menu. The reason for this is that I have the dynarch menu fired on clicking on certain text fields to give them the option of looking the value up.. if they enter a value I want the menu to go away without them having to move the mouse (with the electric set).

Re: onkeypress
2006/02/14 11:34
Viewed 4196 times
Replies: 2/4

Yes, this should be possible (thought not quite documented).  There's one global function that closes all visible menus, I think you could use that.  Just call:

DynarchMenu._closeOtherMenus(null);

in your event handler.

Hope this helps.

last
Re[2]: onkeypress
2006/02/21 23:24
Viewed 5286 times
Replies: 0/0
by Greg

hmm, I tried this but it isn't working. ummm did it exist in cough *cough* version 2.1 cough

I haven't gotten around to upgrading it yet.

Where exactly would that code go. I tired putting it on the menu element and also tried putting it in the input element. Neither seemed to do the trick.

last
Re[2]: onkeypress
2006/02/21 23:54
Viewed 5431 times
Replies: 1/2
by Greg

perfect. Either upgrading the menu caused that function to work or when I tried it the first time I had a mistake somewhere. It is working now. I downloaded the free version on the website. We paid for it so that we can distribute it with the software we sell. Do I need to email you and get a different copy of the newest version sent?

Thanks alot.

last
Google