|
|
I have an errors on the dropdown menu generator in HTML application with 4 iframes.
Return to Recent Questions
Q:
I have an HTML application with 4 Iframes. The main html file
contains 3 Iframes (top toolbar, left toolbar, and main area) and
the dropdown menu generator.
When I try to dynamically change the dropdown menu generator in the .html file I
get the error message: 'm' is null or not an object
The API call is:
dm_ext_addItem(0, 0, ["test1", "testlink.htm", "", "", "test1m", "_blank", "1"]);
I only have one dropdown menu generator.
I am using IE6.
I included the following references in both the html file and the Iframe source file.
<script type="text/javascript" src="./data.files/dmenu.js"></script>
<script type="text/javascript" src="./data.files/dmenu_dyn.js"></script>
<script type="text/javascript" src="./data.files/dmenu_key.js"></script>
A:
You should use standard installation for the menu (cross-frame mode).
dropdown menu generator doesn't work with <IFrame> objects. It works with
<frameset> objects only. All it can to do with <IFrame> is to load
pages into it.
See more info here:
http://dhtml-menu.com/menu/cross-frame-mode-sample.html
http://dhtml-menu.com/menu/data-samples/cross-frame-horizontal-1-sample.htm
There is no need to call dmenu_...js files.
<script type="text/javascript" src="./data.files/dmenu.js"></script>
<script type="text/javascript" src="./data.files/dmenu_dyn.js"></script>
<script type="text/javascript" src="./data.files/dmenu_key.js"></script>
You should write:
<!-- DHTML Menu -->
<noscript><a href="http://dhtml-menu.com">dropdown menu generator by DHTML-Menu.com</a></noscript>
<script type="text/javascript">var dmWorkPath = "./data.files/";</script>
<script type="text/javascript" src="./data.files/dmenu.js"></script>
<!-- (c) 2008, http://dhtml-menu.com -->
Return to Recent Questions
Related:
- March 12, 2009 - I have problems with image paths when I create menu pull down in DHTML Tuner.
- March 14, 2009 - I am having a problem with css styles in the navigation menu bar.
- March 15, 2009 - I have problems with transitional effects in Firefox in the dhtml menu navigation...
- March 27, 2009 - I can't validate my pages with W3C or WDG validators using collapsible menus...
- Apr 05, 2009 - We have status bar errors that say: "Done, but with errors on page" in pop up menu script...
- Apr 07, 2009 - I want to get my text within a single simple css menu item to be on a two lines...
- Apr 20, 2009 - I need the BG color behind items to be flush with the sides of the java pull down menu.
- Apr 25, 2009 - How to work with menu on web and submenus in JSP?
- Apr 28, 2009 - There is some bug with your dhtml menu examples and Page Zoom function in IE7.
- May 02, 2009 - How can I add "|" separating in the menu items with your dynamic css menu?
- May 03, 2009 - I got "Access violation at address 004AACF7..." in button popup menu...
|