(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I was trying to add the functionality of dynamically adding net dhtml menu item..

Return to Recent Questions


Q: I have a paid version of the menu, and I was trying to add the functionality of dynamically adding net dhtml menu item

When I added the code I get the following JS error,

menu is undefined in dmenu_dyn.js (line 13)

dm_ext_addItemPos(1, 0, ["Netscape", "testlink.htm", "", 4 more...], -1)dmenu_dyn.js (line 13)
dm_ext_addItem(1, 0, ["Netscape", "testlink.htm", "", 4 more...])dmenu_dyn.js (line 13)

function dm_ext_hideAllSubmenus(mInd){_dmsm(mInd);};function dm_ext_changeItem(m...

I copied the example from your site, just to see if I can use it.

What am I doing wrong?

A: See, we have two menus on the sample's page
http://deluxe-menu.com/dynamic-functions-sample.html

That's why we write menuInd = 1
dm_ext_addItemPos(1, ...

dm_ext_addItemPos(1, 0, ["Netscape", "testlink.htm", "", 4 more...], -1)dmenu_dyn.js (line 13)
dm_ext_addItem(1, 0, ["Netscape", "testlink.htm", "", 4 more...])dmenu_dyn.js (line 13)

But if you have only one menu you should write menuInd = 0
dm_ext_addItemPos(0, ...
dm_ext_addItem(0, ...






Return to Recent Questions

Related:
Responsive Website Maker Bootstrap Site Themes Review  |  Fresh CSS Bootstrap Carousel Video Players and Nav Menu Demos  |  Responsive Site Theme  |  36 Top Eye-catching and Free AMP Elements Templates for 2021  |  Mobile-friendly Page Maker  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Builder | AI Website Maker | Website Generator AI | AI web page design generator