(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_addItem() doesn�t create any down dhtml menu levels at all

Return to Recent Questions


Q: Typically in order to generate a menu with multiple layers I�d put a pipe character in front of the menu text..� For example:

["|Page Admin","/admin/handoutadmin.php", , , , "_new", , , , ],
  ["||Student Pages","/admin/handoutadmin.php?type=1", , , , "_new", , , , ],
  ["||Teacher Pages","/admin/handoutadmin.php?type=2", , , , "_new", , , , ],
  ["||Family Letters","/admin/handoutadmin.php?type=4", , , , "_new", , , , ],
  ["||Transparencies","/admin/handoutadmin.php?type=3", , , , "_new", , , , ],

� However, when I try to do it with dm_ext_addItem it actually SHOWS the pipe character and doesn�t create any menu levels at all.�
For example:

dm_ext_addItem(0, 0, ["Add a Handout to this Lesson", "", "", "", "", "", ""]);

dm_ext_addItem(0, 0, ["|Student Page","/admin/handoutadmin.php?type=$type", "", "", "", "_new", ""]);

dm_ext_addItem(0, 0, ["|Teacher Page","/admin/handoutadmin.php?type=$type", "", "", "", "_new", ""]);

How can I generate multiple levels of the menu with javascript?

A: I suppose that your code is not valid
dm_ext_addItem(0, 0, ["|Teacher Page", "/admin/handoutadmin.php?type=$type", "", "", "", "_new", ""]);

Try to write it in the following way:
dm_ext_addItem(0, 0, ["|Teacher Page", "/admin/handoutadmin.php?type=", "", "", "", "_new", ""]);






Return to Recent Questions

Related:
Exceptional Bootstrap Mobile Template Set Fine Bootstrap Page Templates - Video List  |  Great Free Page Layouts Set  |  Prime Simple Website Builder Review  |  Super Simple Website Builder Review  |  Awesome Mobile-friendly Website Design Review  | 
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