NlsMenu supports loading submenu on demand. Only menubar initially loaded on the page. When mouse move over an item, the menu will creates a request to server and loads the submenu. This functionality will greatly improve your AJAX based application.


menu theme: colorful

To load submenu on demand, add submenu using addAJAXSubmenu() function:

menu.addAJAXSubmenu("1", "product", "product.xml");

or you can use regular addSubmenu() function, then use setSubmenuUrl to set the url.

menu.addSubmenu("1", "products");
menu.setSubmenuUrl("1", "product.xml");