(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    I have an errors on the dynamic dhtml 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 dynamic dhtml menu. When I try to dynamically change the dynamic dhtml 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 dynamic dhtml 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).
dynamic dhtml 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">dynamic dhtml 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:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. website builder software | bootstrap builder | bootstrap gallery | icon font | bootstrap navbar examples