A: You should call dmWorkPath parameter before you call dmenu.js file.
Check also that this parameter point to the same directory withdmenu.js file. So, you should install the menu in the following way:
A: You can get this error when you load pages from the another domain.
A: It's a feature of the browser. It creates different cookies for eachsubdirectory.The only way is to place all your pages in the one directory.
Q: Is it possible, for instance, to call dm_init multiple times in the list menu java? If so, do you have an example?
A: Yes, you can call dm_init(); function multiple times (for example youcan call several data files, or move menuItems array and dm_init();function into your page directly) to have multiple menus on your page.