In Firefox, the DHTML Menu works generally well for me when I'm logged in as admin. However, the expand and collapse functionality stops working as soon as I log out. Using Firefox 2.0.0.12 on Mac OS X 10.5.2.

Firebug says:
[Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://localhost:8888/site/misc/jquery.js?Y :: anonymous :: line 13" data: no]
[Break on this error] eval(function(p,a,c,k,e,r){e=function(c){return(c

This doesn't seem to be the case in Safari 3.0.4 ...

Any ideas?

CommentFileSizeAuthor
#5 dhtml_menu-233589-5.patch909 bytesaslip

Comments

b_w_s’s picture

It was working in Safari for an anonymous user but now it's apparently not.

jtraub’s picture

Confirm this problem with latest versiob of Drupal and DHTML menu

UPD. This problem disappeared whe i restarted my browser. Now it works fine.
P.S. Clean installation of Drupal 6.1 and DHTML menu

intu.cz’s picture

Title: collapse and expand don't work for anonymous user in firefox » It works but stops during a session

Hello, it seems connected to cookies. When this stops working I clear the session cookies and voila, it works again, but that's hardly a solution, not even a dirty hack...

Roman

blitux’s picture

It seems like DHTML Menu is storing the open menues (the expanded ones) in a cookie, to restore them later when you open any page that 's using the menu.

Now, maybe the error is not in jquery, but in DHTML Menu module. The cookie is storing corrupted data and passes a broken parameter to some function of jquery and throws an exception.

I'm not over it, but maybe a Q&D solution could be to avoid module to store data on a cookie. This will not restore the expanded menues, but it would do the trick.

aslip’s picture

Status: Active » Needs work
StatusFileSize
new909 bytes

Confirm this problem with Firefox 2.0.0.11, Drupal 6.1, DHTML Menu 6.x-1.02

I think this bug arise when menu items have national characters in their IDs. So when Firefox saves the cookie it gets corrupted.

The possible solution is to somehow escape that characters.
Here's a "quick hack" that solved this problem for me.

balonik’s picture

Yes, its definately cookie characters problem.

You can see content of Cookie in Firefox and it is like this:
Name: dhtml_menu
Content: sub50000Webpages124,sub50001Vytvorieobsah11
Server: notimportant.com

The important thing is "Vytvorieobsah11", this name has character "ť" in his name and it should looks like "Vytvoriťobsah11".

This is causing national character problem :)

brmassa’s picture

Status: Needs work » Fixed

Guys,

thanks for this patch. However, im going to use a server-side solution, since it will be faster for the user. see issue http://drupal.org/node/222303

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.