Menu lateral overflow and onclick problem

Hi everybody,

First, im using a dynamically generated menu and it has a lot of options so i can´t show all in one line… Can i use a overflow control to navigate laterally along the menu?

I attach an image as you can see how my menu looks now…

Second, my onclick function doesn´t work and the options doesn´t link to anything…

This is the code…

menu.attachEvent(“onClick”,function(id){
if (id == “‘||reg_submenu.rowid||’”)
{
var site = “bda_inicio_ayudas.ejecuta_opcion_menu?p_k=‘||k||’&p_menu=‘||reg_submenu.sub_men_codigo||’&p_submenu=‘||reg_submenu.sub_codigo||’”
window.location.href(site)
}
})

Thanks for all!


Hi

  1. I can offer vertical scrolling only:
<div id="menuObj" style="overflow: auto"></div>

Horizontal scrolling is a paid customization.
2) onClick event is called for items that do not have sub menu

So i can´t use onclick function in every child i make?

My menu have options with two levels and options with one level, and both doesn´t work…

I need that the links works here:

- Sibling
- Child (here)

and

- Sibling
- Child
- Child (here)

Thanks for the response…

In this case you need just comment the next line in file dhtmlxMenu.js:

if (type.charAt(0)=="c") return; // can't click on complex item

And you’ll get a possibility open items and links by

Unfortunatelly, delete that line does not work, to click onto the options does nothing…

If you use the PRO Edition and you have active support subscribtion, please create a ticket in the online support system and attach comoleted demo there.
If no - attach completed demo here:
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Here is the demo…
CompleteDemo.rar (25.2 KB)

Ok, problem solved… i used another indicator on the ‘if’ and it works…

Thanks a lot for your attention and time!

You are welcome!