gerkintrigg Posted February 2, 2009 Share Posted February 2, 2009 Hello, I thought that I had everything sorted for my website: http://www.neuro-lab.com but it says that there are errors on the page... I have no idea what the issue is, but it seems to relate to this part of the script: var ultags=document.getElementById(treeid).getElementsByTagName("ul") but if I delete it, it stops working completely and the folding menu just opens everything up... Please help. Link to comment https://forums.phpfreaks.com/topic/143476-solved-folding-menu-tree/ Share on other sites More sharing options...
rhodesa Posted February 2, 2009 Share Posted February 2, 2009 in your page, you have this: ddtreemenu.createTree("treemenu2", false) but there is no element on the page with the ID of 'treemenu2' Link to comment https://forums.phpfreaks.com/topic/143476-solved-folding-menu-tree/#findComment-752719 Share on other sites More sharing options...
gerkintrigg Posted February 2, 2009 Author Share Posted February 2, 2009 Oooh... so should I name my menu "treemenu2"? I'm not really sure what to do about the problem... (sorry... I'm not fantastic with JavaScript...) Link to comment https://forums.phpfreaks.com/topic/143476-solved-folding-menu-tree/#findComment-752738 Share on other sites More sharing options...
rhodesa Posted February 2, 2009 Share Posted February 2, 2009 do you only have/want 1 folding menu tree? if so, remove that line (the line directly above it is the only one you should need) Link to comment https://forums.phpfreaks.com/topic/143476-solved-folding-menu-tree/#findComment-752739 Share on other sites More sharing options...
gerkintrigg Posted February 2, 2009 Author Share Posted February 2, 2009 Great, thanks for that... and no... I only need one ;o) Link to comment https://forums.phpfreaks.com/topic/143476-solved-folding-menu-tree/#findComment-752765 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.