|
|
I have an errors on the menu popup 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 popup.
When I try to dynamically change the menu popup 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 popup.
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 popup 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 popup 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 net navigation menu in DHTML Tuner.
- March 14, 2009 - I am having a problem with css styles in the dhtml menu vertical.
- March 15, 2009 - I have problems with transitional effects in Firefox in the mouse over drop down menu...
- March 21, 2009 - I am trying to get my submenu to be all black in my menu popup...
- March 27, 2009 - I can't validate my pages with W3C or WDG validators using menu css horizontal...
- Apr 05, 2009 - We have status bar errors that say: "Done, but with errors on page" in css pulldown menu...
- Apr 06, 2009 - Can the link items NOT open a new window in the menu popup?
- Apr 07, 2009 - I want to get my text within a single javascript dynamic 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 dhtml javascript menu.
- Apr 25, 2009 - How to work with drop down menu web and submenus in JSP?
- Apr 28, 2009 - There is some bug with your drop down menu and Page Zoom function in IE7.
|