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:24
Problems with this page might prevent it....
Poster: Colin Blake
Dated: Wednesday July 23 2003 - 14:06:32 BST
In IE (but not Netscape) I was getting a popup saying "problems with this page might prevent it from....". The page and menu system did actually load fine, but the message was annoying.
I found the problem, I think. At least everything works fine with this fix and the popup is long gone.
The bug is in mmenudom.js, function _getCurPath.
Need to remove a "p". See line with CRB comment
Code:
function _getCurPath(){
_cmp=new Array();
if(_cip.length>0){
for(_c=0;_c<_cip.length;_c++){
_ci=_cip[_c];
_mni=getParentItemByItem(_ci);
if(_mni==-1)_mni=_ci; // CRB - this was _mni=_cip;
while(_mni!=-1){
if(_mi[_mni][18]) _mi[_mni][8] = _mi[_mni][18];
if(_mi[_mni][19]) _mi[_mni][7] = _mi[_mni][19];
if(_mi[_mni][56]&&_mi[_mni][29]) _mi[_mni][29]=_mi[_mni][56];
itemOff(_mni);
_cmp[_cmp.length]=_mni;
_mni=getParentItemByItem(_mni);
if(_mni+" "=="undefined ")_mni=-1
}
}
}
}
_cmp=new Array();
if(_cip.length>0){
for(_c=0;_c<_cip.length;_c++){
_ci=_cip[_c];
_mni=getParentItemByItem(_ci);
if(_mni==-1)_mni=_ci; // CRB - this was _mni=_cip;
while(_mni!=-1){
if(_mi[_mni][18]) _mi[_mni][8] = _mi[_mni][18];
if(_mi[_mni][19]) _mi[_mni][7] = _mi[_mni][19];
if(_mi[_mni][56]&&_mi[_mni][29]) _mi[_mni][29]=_mi[_mni][56];
itemOff(_mni);
_cmp[_cmp.length]=_mni;
_mni=getParentItemByItem(_mni);
if(_mni+" "=="undefined ")_mni=-1
}
}
}
}