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


 

    dm_ext_deleteItem(2, 4, 0) raises an error but according to your javascript menu master manual the first argument should be the menuindex ..which is 2 in our opinion.

Return to Recent Questions


Q: But given the sample on
http://deluxe-menu.com/highlighted-items-sample.html#ind
we want to delete menuentry 'Sample1' and do
dm_ext_deleteItem(2, 4, 0)

This raises an error but according to your javascript menu master manual the first argument should be the menuindex ....which is 2 in our opinion.

A: See, if you have several menus on your page they will have different ID's, for example:

<script type="text/javascript" src="menu/data1.js"></script> //ID=0

<script type="text/javascript" src="menu/data2.js"></script> //ID=1

<script type="text/javascript" src="menu/data3.js"></script> //ID=2

<script type="text/javascript" src="menu/data4.js"></script> //ID=3

So, if you have only one menu on your test page you should use ID=0





Return to Recent Questions

Related:
Bootstrap Collapse Toggle Bootstrap Carousel Example  |  Bootstrap Popover Button  |  Bootstrap List View  |  Bootstrap Glyphicons List  |  Bootstrap Icons Button  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | Free AI Website Builder | AI Website Generator | Free AI Website Generator | Website Generator AI