![]() |
|
#1
|
|||
|
|||
|
People with IE 6.0 cannot use the CoolMenus3 navigation on my site. They receive the following error:
Line: 444 Char: 14 Error: 'length' is null or not an object Code: 0 The error relates to i<addr.length; in the code below: /************ Getting folders - THANKS TO DCAGE FOR THIS FIX *************/ function cm_checkFolder(tmp,url){ if(url.indexOf("mailto:")>-1 || url.indexOf("/")==0 || url.indexOf("http://")==0) return url else if(this.useframes && bw.ie || bw.ns6) return url var addr=''; var lvl=''; var off_cnt=0; var cnt=0; if(tmp.indexOf('file:')>-1 || tmp.charAt(1)==':') addr=this.offlineUrl; else if(tmp.indexOf('http:')>-1) addr=this.onlineUrl; for(var i=0;i<addr.length;i++){if(addr.charAt(i)=='\/') off_cnt+=1} for(var i=0;i<tmp.length;i++){if(tmp.charAt(i)=='\/'){ cnt+=1; if(cnt>off_cnt) lvl+='../'; }} return lvl + url } Has anyone run into this issue? Any fixes that you know of? Thank you. Best regards, Bill |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|