|
|
I have an errors on the vertical popup menu 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 vertical popup menu.
When I try to dynamically change the vertical popup menu 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 vertical popup menu.
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).
vertical popup menu 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">vertical popup menu 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 pop up no in DHTML Tuner.
- March 14, 2009 - I am having a problem with css styles in the menus website.
- March 15, 2009 - I have problems with transitional effects in Firefox in the dhtml dynamic menu...
- March 27, 2009 - I can't validate my pages with W3C or WDG validators using slide down menu...
- Apr 05, 2009 - We have status bar errors that say: "Done, but with errors on page" in menu bar html...
- Apr 07, 2009 - I want to get my text within a single menu javascript code 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 dhtml drop menu.
- Apr 25, 2009 - How to work with dynamic jump menu and submenus in JSP?
- Apr 28, 2009 - There is some bug with your mouseover menu 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 javascript tree menus...
|