This example shows the NlsMenu Pro capability in cross frame environment. You can define menubar in a frame and have the submenus loaded on demand (AJAX) in another frame. You can also define cross frame menu between main window and IFRAME. To create cross frame AJAX menu:
Creates an XML file for the menubar. Here is the menubar XML used in this example menu.xml.
To create menu from the XML file use the code below:
<div id="xmlMenuDiv"><span style="font-size:7pt;color:#990000">Loading menu...</span></div>
<script>
NlsMenuUtil.loadFromXMLFile("menu.xml", "xmlMenuDiv");
</script>
Add the following code to the content page and creates submenu XML.
var mgr = new NlsMenuManager('mgr');
mgr.addAssocMenuMgr(parent.topFrame, "mgr");
mgr.defaultEffect="aoslide";
Below are the XML files used in this example for the submenus: