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:59

Question on updating the newest menu scripts


Poster: perldev
Dated: Tuesday December 28 2004 - 14:56:07 GMT

Whenever the new scripts released, I update the three scripts: milonic_src.js, mmenudom.js and mmenuns4.js. My question is: shall I do this for every minior update? For an example: v5.63 to v5.64, can I only update milonic_src.js?

BTW, is there a "cvs diff" to tell the difference between any two versions?


Poster: bobwill
Dated: Tuesday December 28 2004 - 15:04:33 GMT

Yes you need to stay up to date with the latest version and you need to replace the three files that you mentioned. Make sure to keep a copy of the older version, just in case the latest release creates a problem with your menu setup.

You can check out the version information by going to:

http://www.milonic.com/menuvinfo.php


Poster: perldev
Dated: Tuesday December 28 2004 - 16:22:22 GMT

I am curious why Milonic produces three js files rather than one bigger js file.


Poster: Ruth
Dated: Wednesday December 29 2004 - 4:49:30 GMT

Well, there are probably better reasons, but one I can visualize is that with the mmenuns4.js module separate, if you don't need to support NN4 you can have fewer files. I'm not sure but NN 4 doesn't use the same underlying system [programming, whatever you call it] and doesn't support a lot of the newer things as the more recent browsers so perhaps having that as a separate module makes it easier to edit the programming? Just a guess :)

Ruth


Poster: perldev
Dated: Wednesday December 29 2004 - 16:51:57 GMT

Thank you Ruth. Browser loads either mmenudom.js or mmenuns4.js, it will save loading time. however it produces one more file request. I didn't test, don't know which one is faster. You know JS will be cached anyway. I prefer to update one bigger JS file rather than 3 separated files. Besides you have to write two more line codes:

Code:
if (ns4) _d.write("<script language=Javascript src=mmenujs4.js><\/script>")
else     _d.write("<script language=Javascript src=mmenudom.js><\/script>")


Poster: Ruth
Dated: Wednesday December 29 2004 - 17:07:53 GMT

Sorry, I meant that many leave the mmenuns4.js file out, they just call the milonic_src.js and the mmenudom.js files, not using the if statement. And, again, I think it might be easier when doing updates and adding things to the menu functionality to have the mmenuns4.js and the mmenudom.js as separate modules.

Ruth