I've activated the activemenus in my 4.7 drupal instalation but it dosn't behave as expected. I'm in the navigation block. When i click on the icon of a currently expanded menu item it can collapse and expande again as expected. Now if i try the same with a collapsed item it expands for a moment to show the loading message but then the message disapears without loading the submenu items.
The generated html source shows me the expanded class for the list item and a opening and closing ul tag in the list item so something is trying to happen i guess but the submenu is not getting loaded. If i click on the text hyperlink of a list item instead of the icon the submenu loads and expandes correctly but with that old anoying pagerefresh.
One thing i noticed or maybe just don't understand by looking through the code are some references to class attributes that i just can't find in the normal either the generated html source. A class called "block-menu" that does not exist in the html output and a class called "activemenu" neither. Because the script seams to refer to these classes but i can't see them in the html output maybe that causes this issue.
By the way i realy like this module and hope of getting fast response to get it working for everyone.

Comments

ak’s picture

Title: expanded items don't load » Activemenus, expanded items don't load
Egon Bianchet’s picture

It happens to me too

Egon Bianchet’s picture

Put an alert(string) inside jsAM.prototype.receive . Looks like activemenu_js() is passing an empty array to the js.

Egon Bianchet’s picture

Further investigation reveals that href = href.substring(path.full.length, href.length); mangles the url, so that it's passed like e/add to the callback page.

Btw, I'm using Drupal in a subdirectory, with clean urls like http://localhost/drupal

ak’s picture

now that you're saying it my drupal is although in a subdirectory with clean url's. your point out seams to be the right direction. i'm quit bussy at the moment but i'll further check this asap.

nedjo’s picture

Activemenus doesn't yet work with clean urls. I'm working on a fix.

nedjo’s picture

Title: Activemenus, expanded items don't load » Activemenus doesn't support clean urls
janv@www.drupalsites.net’s picture

I have the same problem. I'm also using clean urls and the site is in a subdirectory as well.

nedjo’s picture

I committed changes yesterday aimed (among other things) at getting this working. Please download a fresh copy. Note that there is now a dependency on the new jstools.module, which you will have to enable. Please report back as to whether this fixes the issue. Thanks.

Egon Bianchet’s picture

The changes in CVS fix this for me.

janv@www.drupalsites.net’s picture

Now some menu's work, but other's don't. It doesn't work for menu-items pointing to book pages.

Thank you for working on this.

nedjo’s picture

Status: Active » Fixed

Note that activemenus don't as yet attach to all menus, only those created by menu.module and the user.module navigation menu.

If you wish, please open a new feature request issue.

mojobaer’s picture

Can someone explain what it means to say activemenus only work for menus created by menu.module and user.menu.module?

I've installed jstools and activemenus and enabled them. Has not changed the behavior of my multi-level menus. Is there something else I need to do? I'm mostly using them in the Navigation block for the Admin functions at the moment, although they are not working for a menu structure that I defined as well with the admin functions.

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)