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+
Last Updated: Monday December 1 2008 - 06:12:07

Accessibility and keyboard-only users


Poster: nathaliev
Dated: Friday April 28 2006 - 18:41:33 UTC

I am not a Javascript expert and I'm only familiar with editing the menu_data.js file. Is there a way so that people with disabilities and who cannot use a mouse can use the menu by using only the keyboard.


Poster: Migru
Dated: Friday April 28 2006 - 20:18:56 UTC

Hi

there is a keyboard module, its called keypress.js
This module will allow the user to navigate Milonic menus via the keyboard.
you find it here:
http://www.milonic.com/menumodules.php

Michael


Poster: nathaliev
Dated: Friday April 28 2006 - 20:27:49 UTC

Migru wrote:
Hi

there is a keyboard module, its called keypress.js
This module will allow the user to navigate Milonic menus via the keyboard.
you find it here:
http://www.milonic.com/menumodules.php

Michael


Thank you Migru, I will have a look!


Poster: nathaliev
Dated: Saturday April 29 2006 - 7:25:32 UTC

Migru wrote:
Hi

there is a keyboard module, its called keypress.js
This module will allow the user to navigate Milonic menus via the keyboard.
you find it here:
http://www.milonic.com/menumodules.php

Michael


Hi Michael,

I tried it but it didn't work. I placed the file in the same folder as the HTML page and the other Milonic files. This is the code in my HTML page:

<script src="/keypress.js" type=text/javascript></script>
<SCRIPT type="text/javascript" src="milonic_src.js"></SCRIPT>
<param copyright="JavaScript Menu by Milonic http://www.milonic.com"> <a href="http://www.milonic.com/"><font color="#C01733">JavaScript DHTML Drop Down Menu By Milonic</font></a>
<script type="text/javascript">
<!--
if(ns4)_d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenuns4.js><\/SCR"+"IPT>");
else _d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenudom.js><\/SCR"+"IPT>");
-->
</SCRIPT>
<SCRIPT type="text/javascript" src="menu_data2.js"></SCRIPT>

Have I done something wrong? I also made sure that the file was uploaded on the server and the HTML page was updated.


Poster: Ruth
Dated: Saturday April 29 2006 - 7:43:28 UTC

Hi,

I believe that keypress.js has to go after the menu_data.js file and you'd need to put the correct path based on your site. For example if it's in the same folder as all the pages, it would only be keypress.js not /keypress.js

Ruth


Poster: Migru
Dated: Saturday April 29 2006 - 12:29:36 UTC

Hi Ruth,

there should be a note or comment included in the keypress module with information where to place the file though it is relatively logical, that it should go after the menu_data file.

If I had an idea that this could be source for an error, I would have certainly suggested to place it AFTER the menu_data.js file.

I tested that module, but took it out again, once I was aware, that it is - in my opinion - too complicated using it, if you have multiple menus on one page.

Michael


Poster: nathaliev
Dated: Saturday April 29 2006 - 17:28:46 UTC

Ruth wrote:
Hi,

I believe that keypress.js has to go after the menu_data.js file and you'd need to put the correct path based on your site. For example if it's in the same folder as all the pages, it would only be keypress.js not /keypress.js

Ruth


I placed it under menu_data2.js, but when I use the tab keys to move from one link to another, it does not go on the DHTML menu. It is the tab keys that we use, isn't it, to move from link to link?

Here is the code (also, I added the quotes (there were missing):

<SCRIPT type="text/javascript" src="milonic_src.js"></SCRIPT>
<param copyright="JavaScript Menu by Milonic http://www.milonic.com"> <a href="http://www.milonic.com/"><font color="#C01733">JavaScript DHTML Drop Down Menu By Milonic</font></a>
<script type="text/javascript">
<!--
if(ns4)_d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenuns4.js><\/SCR"+"IPT>");
else _d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenudom.js><\/SCR"+"IPT>");
-->
</SCRIPT>
<SCRIPT type="text/javascript" src="menu_data2.js"></SCRIPT>
<SCRIPT src="keypress.js" type="text/javascript"></SCRIPT>


Poster: Ruth
Dated: Saturday April 29 2006 - 20:18:17 UTC

Hi,

Go to the main site: http://www.milonic.com/

and when you get there try using the tab to move and see what happens.

If that works then we need to see your page to figure out why it's not working on yours. I didn't go through the whole menu just a couple of tabs but it seemed to work for me.

Ruth


Poster: nathaliev
Dated: Sunday April 30 2006 - 17:27:49 UTC

Ruth wrote:
Hi,

Go to the main site: http://www.milonic.com/

and when you get there try using the tab to move and see what happens.

If that works then we need to see your page to figure out why it's not working on yours. I didn't go through the whole menu just a couple of tabs but it seemed to work for me.

Ruth


Hi Ruth,

Thanks for getting back to me. I did what you asked me to do, it does work when I use the tab key on http://www.milonic.com/. So please if you could look at my page and tell me what I may have done wrong, that would be great. Here is the address: http://www.stpaulsacademy.org.uk/Mock-U ... hadows.htm

I also have all the files in the same directory as the HTML page.

Thanks!

Nathalie


Poster: Ruth
Dated: Sunday April 30 2006 - 20:38:13 UTC

Hi,

The first thing you are going to have to do is upgrade your menu. You are way downlevel. Download the newest version, and make sure that you take your older version and save the files someplace in case you have to go back to them, if there's some problem with the new ones. Then upload the new files. YOU ARE ONLY UPLOADING THE 3 program files NOT the menu data file. You don't want to overwrite your personal data file. I always suggest to people that they rename the menu_data.js file that they make to something else so there is never an opportunity to overwrite it with the menu_data.js file that comes with the Milonic download.

I'm still working on the problem there is something in your menu data file causing the issue because when I substitute the menu_data.js file from the download it works... more or less... but, you need the newest files so I can report it to Milonic if I can't find a solution. They cannot test things in other than the newest version of the menu.

Ruth


Poster: nathaliev
Dated: Tuesday May 2 2006 - 8:29:39 UTC

Ruth wrote:
Hi,

The first thing you are going to have to do is upgrade your menu. You are way downlevel. Download the newest version, and make sure that you take your older version and save the files someplace in case you have to go back to them, if there's some problem with the new ones. Then upload the new files. YOU ARE ONLY UPLOADING THE 3 program files NOT the menu data file. You don't want to overwrite your personal data file. I always suggest to people that they rename the menu_data.js file that they make to something else so there is never an opportunity to overwrite it with the menu_data.js file that comes with the Milonic download.

I'm still working on the problem there is something in your menu data file causing the issue because when I substitute the menu_data.js file from the download it works... more or less... but, you need the newest files so I can report it to Milonic if I can't find a solution. They cannot test things in other than the newest version of the menu.

Ruth


Hello Ruth and thanks again for helping me out,

Before I do the updates I have 2 questions to ask you:

Firstly, do you want me to send you my menu_data.js file?
Secondly, the version I have is 5.723, and although you state that I'm way downlevel, Milonic mentionned that keypress works for versions 5.1 or above. What should be the latest version?

Thanks and will let you know when I've done the updates!


Poster: Migru
Dated: Tuesday May 2 2006 - 9:02:25 UTC

Hi,

Quote:
(John) As always, the most current version of the menu is available at http://www.milonic.com/menuvinfo.php. Also keep in mind that the latest full version is the only officially supported code.


Michael


Poster: nathaliev
Dated: Tuesday May 2 2006 - 9:05:57 UTC

Migru wrote:
Hi,

Quote:
(John) As always, the most current version of the menu is available at http://www.milonic.com/menuvinfo.php. Also keep in mind that the latest full version is the only officially supported code.


Michael


Hello Michael,

By "full version", do you mean the "paid version"?


Poster: Migru
Dated: Tuesday May 2 2006 - 9:12:12 UTC

Hi
as I understand - no - not really. Of course, you should have a license, if its a professional one or a free license, doesn´t matter.

In this regard see
http://www.milonic.com/nonprofits.php


Michael


Poster: nathaliev
Dated: Tuesday May 2 2006 - 9:50:34 UTC

Ruth wrote:
Hi,

The first thing you are going to have to do is upgrade your menu. You are way downlevel. Download the newest version, and make sure that you take your older version and save the files someplace in case you have to go back to them, if there's some problem with the new ones. Then upload the new files. YOU ARE ONLY UPLOADING THE 3 program files NOT the menu data file. You don't want to overwrite your personal data file. I always suggest to people that they rename the menu_data.js file that they make to something else so there is never an opportunity to overwrite it with the menu_data.js file that comes with the Milonic download.

I'm still working on the problem there is something in your menu data file causing the issue because when I substitute the menu_data.js file from the download it works... more or less... but, you need the newest files so I can report it to Milonic if I can't find a solution. They cannot test things in other than the newest version of the menu.

Ruth


Ruth,

I have solved the problem (thanks to you!). You were right there was a problem with my menu_data.js file. The reason it did not work is that I did not have links (e.g. url=www.stpaulsacademy.org/filename.htm).

Thanks again!

Nathalie


Poster: stephen702
Dated: Tuesday May 2 2006 - 16:30:20 UTC

I have never been able to get keypress.js to work on my test site, which has two horizontal menus. I have tried everything over the past few months, but nothing solves the problem.

Could you take a look? It's on our internal server, but not protected:

http://inside.arc.losrios.edu/

When I use the tab key, the first horizontal menu works fine, but on the second menu, the first drop-down submenu (Quick Links) does not drop down at all, and pressing the tab key takes me to the next submenu (Calendars) which does drop down. However, at the end of the Calendars submenu, pressing the tab key takes me out of the menu entirely, dropping me down into links on the page itself.

Any help would be appreciated. I've reported this problem before, but received no response.


Thanks


Poster: nathaliev
Dated: Tuesday May 2 2006 - 18:12:44 UTC

stephen702 wrote:
I have never been able to get keypress.js to work on my test site, which has two horizontal menus. I have tried everything over the past few months, but nothing solves the problem.

Could you take a look? It's on our internal server, but not protected:

http://inside.arc.losrios.edu/

When I use the tab key, the first horizontal menu works fine, but on the second menu, the first drop-down submenu (Quick Links) does not drop down at all, and pressing the tab key takes me to the next submenu (Calendars) which does drop down. However, at the end of the Calendars submenu, pressing the tab key takes me out of the menu entirely, dropping me down into links on the page itself.

Any help would be appreciated. I've reported this problem before, but received no response.


Thanks


I had a quick look at your data_menu file, and your problem seems very different to mine so it's difficult for me to compare. However, have you tried not to make the top level links so that you delete the url=etc.. from Quick Links, Calendar, etc...

What I did to solve my problem is that I replace my menu_data.js file by the one provided by Milonic and recreated it line by line until I stumbled over the problem. I know it can be quite lengthy but it solved my problem.