Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:25

menus not activating in 5.789


Poster: JuliaM
Dated: Tuesday December 18 2007 - 1:39:18 GMT

New version - Version 5.786 - Built: Monday October 22 2007 - 13:17
Old version - Version 5.779 - Built: Friday August 10 2007 - 11:24
The old version works fine for all browsers
The new version is problematic when used with IE 6 and 7

Issues:
Most times, the new version menus do not activate.
With resetting of security levels, zones, trusted sites, reloading IE, rebooting PC we have determined some scenarios that
appear to allow the menus to work. Even under these circumstances, results
are variable and this does not constitute a work-around acceptable to us or
our clients using our web sites

When we have got the menus to work, they only appear to work once. After a
single click, the menus no longer respond.

Can any one help please?
Thanks!

Re: menus not activating in 5.789


Poster: Ruth
Dated: Tuesday December 18 2007 - 4:41:45 GMT

Hi,

We have to have a url to be able to see what's going on

Also, the newest version is 5.787.

Ruth

Re: menus not activating in 5.789


Poster: JuliaM
Dated: Wednesday December 19 2007 - 0:46:59 GMT

Hi Ruth

https://www.jadestardev.jadeworld.com/s ... inNetApp&c
company=tbc
Logon is davis/davis
Sorry, I did mean 5.786. which is a purchased version (November 07)
the earlier verion that was loaded down as a trial, Version 5.779 seems to work fine.
Thanks for your help, hope you can find something .
Julia

Re: menus not activating in 5.789


Poster: Ruth
Dated: Wednesday December 19 2007 - 1:10:18 GMT

Hi,

There are a couple of errors. 1st, you have double calls one for mmenudom.js and then you have the old one which is with an if/else statement to call either mmendom.js for all browsers but NN4 and the mmenuns4.js for NN4 browsers. If you are not supporting NN4, which is so far out of date I don't even know if it will load the newer pages, then just use this call

Code:
<SCRIPT language=JavaScript src="Skins/Common/milonic/milonic_src.js"  type=text/javascript></SCRIPT>

<SCRIPT language=JavaScript src="Skins/Common/milonic/mmenudom.js"  type=text/javascript></SCRIPT>


and eliminate the

Code:
<SCRIPT language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript  src=skins/common/milonic/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=skins/common/milonic/mmenudom.js><\/scr"+"ipt>");
</SCRIPT>


Next, it looks as if you are putting the menu in a div, this requires that it be set relatively. I don't know how you're doing the menu, I see all of it up at the top in the <head section inside script tags and then you have a script tag in the menu div with a drawMenus(); in it. It would be easier to use the new method which would be to put all the menu into one file, then call all the files in that div. So, let's say you call it table_menu.js then in that div you'd call

Code:
<DIV id=menu><script language="JavaScript" src="Skins/Common/milonic/milonic_src.js" type="text/javascript"></script><script language="JavaScript" src="Skins/Common/milonic/mmenudom.js" type="text/javascript"></script>

<SCRIPT language=JavaScript src="Skins/Common/milonic/table_menu.js"
type=text/javascript></SCRIPT>
</div>


To do this, you'd need to put everything into one file and put the drawMenus(); at the end of the file, and also to change the main menu to

Code:
with(milonic=new menuname("N1")){
style=menuStyleMain;
alwaysvisible=1;
position='relative';


By everything, I mean the menu stuff, starting with the fixMozillaZIndex=true; and then putting the drawMenus(); after the ending } of the submenu N2.

If there is some reason you have to have it the way it is, then you need to set the position="relative"; in the main menu and remove the top and left

Ruth

Re: menus not activating in 5.789


Poster: JuliaM
Dated: Wednesday December 19 2007 - 1:33:36 GMT

Hey Ruth
thanks for that - I have sent it to the programmer who is working on it, so will let you know.
Regards
Julia

Re: menus not activating in 5.789


Poster: JuliaM
Dated: Wednesday December 19 2007 - 21:05:15 GMT

Hi Ruth
Thanks for your help and expertise, the programmer reports back that this has fixed the issue.
I really appreciate your help!
Kind regards
Julia

He wrote:
"Yes!
It worked. The 2 significant bit that I did was to move the calls of the
menus inside the menu div (and took out call to commonScriptContents in
head)
So now menu div contains

<xsl:if test="//geniDoc/body/arrayBody/array">
<script language="JavaScript" src="{$commonPath}milonic/milonic_src.js"
type="text/javascript"></script>
<script language="JavaScript" src="{$commonPath}milonic/mmenudom.js"
type="text/javascript"></script>
<xsl:call-template name="menuScript"/>
</xsl:if>
<script language="javascript">drawMenus();</script>

AND changed the array.xsl to set the position='relative' and not top/left.

I guess the putting the menus into a separate file would be tidier but I
will leave this for another time.
Thanks very much.
"