Page 1 of 1
CSS Menus don't drop down in IE after 0.13 upgrade
Posted: Wed May 31, 2006 10:04 am
by martin42
Hi
I've just upgraded an old site to 0.13 on a test server, by copying the tarball on top and running the upgrade.php script.
Once I enable the CSSMenu module, the main site nav menu is displayed. It works fine on Firefox, but on MS IE the drop-downs don't drop down any more!
Any ideas?
Cheers!
- Martin.
Re: CSS Menus don't drop down in IE after 0.13 upgrade
Posted: Wed May 31, 2006 12:03 pm
by cyberman
martin42 wrote:
I've just upgraded an old site
How old was this site (version)?
Re: CSS Menus don't drop down in IE after 0.13 upgrade
Posted: Wed May 31, 2006 12:34 pm
by martin42
0.11-beta1 "Trinidad" ...
The problem seems to be that this line (just above ) is missing in the new output:
Yet the CSSMenu.module.php is unchanged since 0.11. The line gets inserted by function ContentPreRender() in that file.
I think the problem must be that the enclosing framework has changed, so ContentPreRender is no longer called.
I can probably frig it for now, just a question of where/how...
(EDIT) ... Yep, I just stuck that line in the Content area of each of my Templates, and that's nailed it.
I'll guess I'll go back now, and stick the actual Javascript in those Templates instead of the reference, as it's only small,
and this will avoid another HTTP request on each page fetch. To be fair, those requests would generally all receive
HTTP 304 (not modified) responses, which are small.
Re: CSS Menus don't drop down in IE after 0.13 upgrade
Posted: Wed May 31, 2006 12:47 pm
by Dr.CSS
check template for this in the ...
most all my templates use a dropdown menu, this works for me, since ver. 11. something
Re: CSS Menus don't drop down in IE after 0.13 upgrade
Posted: Wed May 31, 2006 1:08 pm
by martin42
Cool beans! I'll use that version instead -- that way, non-IE browsers won't see that Javascript code.
PS, I see that the browser only fetches *.js files once, so in fact there's little to be gained from pasting the code in the template itself.