Posted by Winstonralph on December 4, 2008 at 11:10am
Jump to:
| Project: | DHTML Menu |
| Version: | 6.x-3.x-dev |
| Component: | Javascript code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
I have a book navigation on my site which holds two books. My first book is quite large and has a depth of about five children, the second could grow to be the same, but has quite a flat structure so far. In total there are about 700 pages inside my first book and only about 20 in my second.
Help
child 1
child 2
child 3
child 4
child 5
child 1.1
child 2.1 etc....
Help 2
child 1 etc....I only have the book navigation on the left sidebar and nothing else. I click on the top level help, IE takes a second or two to unfold the menu and when it does it issues a "Stop running this script? A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive.' error. The menu works beautifully in Firefox2/3 + Chrome.
Comments
#1
Thanks for reporting this. I have never tested this module with any menu remotely as large as the one you have there.
Unfortunately there probably is not much I can do since I use high-level jQuery, and can't speed up the low-level JS code. But I could try a few tweaks.
At least it's nice to see that the good browsers can handle it with ease.
#2
I have the same issue on IE6.
#3
I'm experiencing this too and wondering if there is another dynamic menuing module that would handle a larger structure better???
#4
Hi,
For very large menus, the Active Menu module - part of the JS Tools module set http://drupal.org/project/jstools - might be worth considering, as it uses AJAX to load the menu branches as they're needed. The drawback is that, on smaller menus, the loading delay makes things feel slower than DHTML Menu which has the whole menu tree available immediately. I guess the ideal would be a combination of the two, with say the first couple of levels preloaded, and other submenus retrieved with AJAX as the user drills down - but that's not going to be simple to code!
#5
I have same trouble on IE6 and IE7.(FireFox works fine.)
My book tree is very deep and has many nodes, so IE shows warning dialog like "too many javascripts, will you stop show page?".
Then I tried nice menu and Jquerymenu. They works fine but they are only for "menu" so i couldn't choose "book navigation".
I think JS Tools is enable for "navigation" or "menu" too..
#6
Is there a way to disable the menu for IE? It's ok if IE users are degraded to simple menu, but I don't want them to get an annoying alert window on every page load.
Also a possibility to limit the number of menu levels arbitrarily might come handy, especially for book navigation.
#7
I'm going to be bold and say these problems would all be satisfied by this feature request: #706530: Use AJAX for large menus