Bug with key "F2" menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
axel1258
Beginner
Beginner
Posts: 4
Joined: Thu Jul 05, 2007 12:37 pm
Location: Paris

Bug with key "F2" menu

Post by axel1258 »

Hi,

I'm using the 5.16 version with keypress.js on IE 6 web browser.

I've noticed a bug with the "F2" key when you're over some items in the menu.
The error given is "'_m[...].7' has a null value or is not an object"
It's seems it's fixed when you add a null test before the function getNextMainMenu() in keypress.js :
(I'm not good in javascript and I think there is a better code for this)

function getNextMainMenu(){
var a
for(a=_mainM;a<_m.length;a++){
if (_m[a] != null && _m[a][7] != null) {
if(a>_mainM&&_m[a][7]){
(...)
}
axel1258
Beginner
Beginner
Posts: 4
Joined: Thu Jul 05, 2007 12:37 pm
Location: Paris

Post by axel1258 »

[SOLVED]
This is due to my menu_data.js. This file is generated and contains some submenu without items (aI(...))...
After clean it, the menu works perfectly.

Thx
Post Reply