Question on updating the newest menu scripts

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Question on updating the newest menu scripts

Post by perldev »

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?
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Post by bobwill »

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://milonic.com/menuvinfo.php
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

I am curious why Milonic produces three js files rather than one bigger js file.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

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: Select all

if (ns4) _d.write("<script language=Javascript src=mmenujs4.js><\/script>")
else     _d.write("<script language=Javascript src=mmenudom.js><\/script>")
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply