Is there a wau to load the mmenu.js just once?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Flash_harry
Advanced
Advanced
Posts: 11
Joined: Wed Apr 23, 2003 4:30 pm

Is there a wau to load the mmenu.js just once?

Post by Flash_harry »

BTW This is a great menu and it is really simple to understand .. it must be .. I can understand most of it.

I am having a bit of loading trouble. It is really fast to load really, but then when you go from page to page the status bar reads "Closing mmenu.js" and this takes a long time sometimes, leaving a blank window until it sorts itself out.

Is there a way to load all the menus ( I have two on one page ) just one per session? So that it just loads...? All tyhe menu stuff is the same each page so it seems a waste of time to keep closing and opening the menus.

Any ideas?

Flash
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Flash,

First the bad news. The menus are controlled with the javascript functions found in mmenu.js. As soon as you leave a page -- any page -- containing javascript, those functions are gone, along with the rest of the page. If menus are to be displayed on the next page, then the code that controls them must be available in that page. In other words, the code in mmenu.js must be loaded into any page where you want to use the menus. This is not a requirement specific to the menus; it's a requirement for any scripted functionality that is to act within a page... script can't run unless it's there!

The thing is, I've never heard of or seen this sort of behavior with Milonic menus. I've never even seen this message in a status bar (not to say it isn't there; I just have never seen it). I've looked at dozens and dozens of sites using this menu script and have never seen a page go blank and be slow to unload (at least not because of the menus). So I can't help wondering if it isn't related to something else. Are you able to post a URL so we can visit these pages and try to figure out what's going on? A test site perhaps?

Kevin
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Gotta join with Kevin on that. I, too, have never seen that message. Are you running any other script(s) on the same page?

Don't forget a URL.
John
Post Reply