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: This doesn't seem to be the case in Safari 3.0.4 ... Any ideas?
[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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | dhtml_menu-233589-5.patch | 909 bytes | aslip |
Comments
Comment #1
b_w_s commentedIt was working in Safari for an anonymous user but now it's apparently not.
Comment #2
jtraub commentedConfirm 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
Comment #3
intu.cz commentedHello, 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
Comment #4
blitux commentedIt 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.
Comment #5
aslip commentedConfirm 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.
Comment #6
balonik commentedYes, 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 :)
Comment #7
brmassa commentedGuys,
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
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.