|
|
|
I have an errors on the menu vertical 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 menu vertical.
When I try to dynamically change the menu vertical 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 menu vertical.
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).
menu vertical 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">menu vertical 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 script de menu in DHTML Tuner.
- March 14, 2009 - I am having a problem with css styles in the java pop up menu.
- March 15, 2009 - I have problems with transitional effects in Firefox in the dhtml menu scripts...
- March 27, 2009 - I can't validate my pages with W3C or WDG validators using horizontal scrolling menu...
- Apr 05, 2009 - We have status bar errors that say: "Done, but with errors on page" in code html menu...
- Apr 07, 2009 - I want to get my text within a single menu and javascript 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 menu javascripts.
- Apr 25, 2009 - How to work with html pulldown menu and submenus in JSP?
- Apr 28, 2009 - There is some bug with your menus for web and Page Zoom function in IE7.
- May 02, 2009 - How can I add "|" separating in the menu items with your site navigation?
- May 03, 2009 - I got "Access violation at address 004AACF7..." in mouse button menu...
|