GNOME Bugzilla – Bug 776964
Menu does not work without Javascript
Last modified: 2017-12-25 18:44:01 UTC
Since 1.8.12 there is new main menu. It completely relies on Javascript which makes navigation unavailable for search engines and anyone without JS enabled. Also, it does not highlight the current page. There is no good reason to use JS to render essential navigation. Please return the old menu.
I'll reintroduce the old style navigation in the next git update. To enable it set HTML_DYNAMIC_MENUS to NO in the config file.
Thank you.
I also stumbled about those new menus (using 1.8.13). But on my part I get a 'ReferenceError' inside the Firefox JavaScript Konsole (and also IE) wrt. to <script type="text/javascript"> $(function() { initMenu('',false,false,'search.php','Search'); }); inside 'index.html'. It tells me 18:40:42.509 ReferenceError: $ is not defined 1 index.html:11:1 <anonym> http://.../Doxygen/index.html:11:1 I do not get any menus, too. I'm not JS expert: is this $( ... ) really a valid JavaScript expression?
$() is just a function call - see jQuery, which is likely missing.
on the version 1.8.12 and 1.8.13 , when i am generating a chm file (Compiled HTML file) There is an issue Line: 26 Error: The value of the property '$' is null or undefined, not a Function object Search.html and search.php is not present in the generated directory i have no Menu too.
on the version 1.7.X, the menu is correct on chm mode and html mode <!-- Generated by Doxygen 1.7.4 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li class="current"><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> ==> No error happenned <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',false,false,'search.php','Search'); }); </script> ==> Error Happenned (cf Screenshot)
Created attachment 357551 [details] error screenshot after opening chm file generated by Doxygen 1.8.13
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.14. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferably in the form of a self-contained example).