JavaScript Menu, DHTML Menu Powered By Milonic
Demo Load MultiFrames Function
for use with Milonic Solutions' DHTML Menu V5
This sample page was created in reference to this thread of discussion in the "Help and Support for Version 5".

The mm_loadMultiFrames() function allows you load any number of frames or iframes from a single menu item.



To use the _loadMultiFrames() function:

  1. Place the following code at the top of your menu_data.js file

    function loadMultiFrames()
    {
      if (arguments.length > 0)
      {
        for (var i=0; i<arguments.length; i++)
        {
          params = arguments[i].split("=");
          if (params[0].length > 0 && params[1].length > 0) parent[params[0]].location = params[1];
        }
       }
     }

  2. Each parameter is a string specifying a frameName/URL combination
    1. frameName is the name of the frame whose content you want to change -- name as given in the <frameset > or <iframe > tag
    2. URL is the URL you want to load into the specified frame

  3. include the function call in an aI() menu item. The parameter should be formatted as \"frameName=URL\" using escaped double-quotes (\") around each frameName/URL string, (otherwise, you'll get odd behavior in some browsers).


  • For example, a menu item named "Go" that loads page1.htm into an iframe named "topframe", page2.htm into an iframe named "bottomframe", and page3.htm into an iframe named "sideframe" might look like:

    aI("text=Go;url=javascript:loadMultiFrames(\"topframe=page1.htm\", \"bottomframe=page2.htm\", \"sideframe=page3.htm\");");
    (all on one line... no wrapping)
  • DHTML Menu courtesy of  Milonic Solutions
    Download  mm_loadMultiFrames() sample