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

RC11 from RC6 - menu not displaying


Poster: bonewalker
Dated: Friday September 26 2003 - 22:31:00 BST

Hi All,

When I jump from RC6 to RC11 via ftping milonic_src.js, mmenudom.js, and mmenuns4.js right over the old ones, my menu won't load.

I get a javascript error that says 'Object expected: Line 17 char 1808.

When I replace those files back to RC 6, everything works fine.

Is there something else I forgot to do?

Can't send URL at this point...private info.

Thanks,

Bonewalker


Poster: kevin3442
Dated: Saturday September 27 2003 - 1:55:23 BST

Hi,

My guess would be that it has to do with the removal of the scriptpath variable in milonic_src.js.

Instead of the following old method of loading the menu scripts in your .html files:
Code:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>


Try the following new method (just copy and paste it right out of the following code block into your .html file):
Code:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
  else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>


And if you don't care about making your menus work with NS4 (a blatant anti-NS4 plug ;) ), you could do the following instead:
Code:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenudom.js" type=text/javascript></SCRIPT>


You would, of course, still have to load your menu definitions (e.g., menu_data.js) after the menu scripts, as usual:
Code:
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>


Hope that helps,

Kevin


Poster: bonewalker
Dated: Saturday September 27 2003 - 3:08:12 BST

Thanks a lot, Kevin. I will give it a shot soon and see how it goes.

Bonewalker


Poster: John
Dated: Saturday September 27 2003 - 6:46:38 BST

If you don't mind my saying so (or even if you do, I guess :roll: ), that's why the doc files are included in the download, particularly 'install'. Everybody was ragging Andy about the lack of docs, and now he's put them in it seems they're not being read. Can't win for losin'...

We're still essentially in beta, and things are constantly changing. My guess is Kevin hit your problem square on.


Poster: bonewalker
Dated: Monday September 29 2003 - 15:08:54 BST

Geez, I am feeling like a big pain in the rear.

When I download the latest menu, after logging in, the new menu files I get still contain the Milonic default 2nd link. We have a non-profit license...is this what I am supposed to be getting, or is there some kind of error? If I need to pay to remove the link, we will, in time, but otherwise, I would like to get my menu updated to see if any of the speed issues are helped by the latest version.

BTW...in Netscape 7.1, my very large menu loads in less than 10 seconds...in IE it is usually 20 seconds or more. Anyone know what is different about NS 7.1?

Also, my large menu doesn't work on Macs of any kind yet...but a similar menu with much less data does work fine on the Mac. I am going to go ahead and post a link to see if others experience the same thing.

In NS 4.7*, the main menu is created, but on mouseover, none of the sub menus are displayed.

http://www.bakeru.edu/directories/directory.html

Be prepared for a wait when you click on the link above.

Thanks,

Bonewalker


Poster: John
Dated: Monday September 29 2003 - 16:26:53 BST

bonewalker wrote:
Geez, I am feeling like a big pain in the rear.

Not at all. We're here to help.
bonewalker wrote:
When I download the latest menu, after logging in, the new menu files I get still contain the Milonic default 2nd link. We have a non-profit license...is this what I am supposed to be getting, or is there some kind of error?

Did you provide Milonic with proof of your non-profit status, or just say 'non-profit' in your application? Proof is required. Have you received an e-mail with your license number? If not, it just means they're a bit behind in getting info into the database. Until this is done the system won't recognize you as a 'non-forced-link-user'.


Poster: bonewalker
Dated: Monday September 29 2003 - 16:32:02 BST

Quote:
Did you provide Milonic with proof of your non-profit status, or just say 'non-profit' in your application? Proof is required. Have you received an e-mail with your license number?


Yes, we received the email with our license in it a few months ago.


Poster: John
Dated: Monday September 29 2003 - 16:41:13 BST

bonewalker wrote:
Yes, we received the email with our license in it a few months ago.

Drop a note to marty __at__ milonic.com and explain your situation. Include the license number you got and the e-mail address used when you applied.

Apologies for the trouble.


Poster: bonewalker
Dated: Monday September 29 2003 - 16:46:25 BST

Thanks again John.

Any thoughts on the Mac or NS4 problems I mentioned? Did you load the menus?

Just would like to get your thoughts if you experienced any trouble.

Bonewalker


Poster: John
Dated: Monday September 29 2003 - 16:51:07 BST

You're welcome.

Unfortunately, here at work I'm stuck on a Windoze platform. Home, however, is an entirely different story - Mac-land! I have fire department duties when I get out of here, so getting home will be very late. I'll take a look ASAP (just sent myself a reminder!).


Poster: John
Dated: Tuesday September 30 2003 - 6:37:56 BST

Just got home from fire stuff, and basically I've had it.

Can't help with NS4, but did look at it on OS X/Safari. Took 35 seconds to load via cable modem on a high speed machine. Will gather some thoughts and try and give you more tomorrow. Just can't think straight right now (it's already been a 19 hour day), but I told you I'd look.


Poster: Maz
Dated: Tuesday September 30 2003 - 8:34:45 BST

No way, I'm not loading that on the Mac, I can't even get my own submenus to open. Lucky I looked on the pc laptop.
maz


Poster: bonewalker
Dated: Tuesday September 30 2003 - 14:24:51 BST

Ha!

Sorry about that John and Maz. But I did warn you. :)

Anyway, thanks for trying, and I'll see what I can do to pare it down to a reasonable size.

Bonewalker

P.S. However, I would still like to hear any educated guesses as to why that bloated menu of mine loads so quickly in NS 7.1. It is more than twice as quick as anything else I have attempted to load it on, which tells me that maybe the javascript parser in NS 7.1 is much better than anything else out there.


Poster: John
Dated: Tuesday September 30 2003 - 15:10:23 BST

Andy will have to address the NS7 "problem" :)

Under OS X/Safari all of your subs did display, but some seemed to be out of place; e.g., Faculty/Staff dropped directly below its main menu, but CAS Students dropped its sub about 2 menus to the right. It appears you've hard-coded at least some of the drop positions of your subs.

I say that because, looking at it now on XP Pro/IE6, the main menu is all the way to the right side of the screen. On the Mac it was all the way to the left side. Faculty/Staff sub still drops directly below the main menu, but CAS Students drops to the left of the main menu, in the same (incorrect) screen position it dropped when the menu was on the left side. The rest of the menus also drop way to the left of their main menu items.

Your source for menu_data_directory.php is coming down all run together, which makes it tough to read. Unfortunately, it appears w.o.r.k. is waiting (I start at 0600), but I'll try to get back to it (unless Dave or Kevin beats me to it).


Poster: bonewalker
Dated: Tuesday September 30 2003 - 15:21:55 BST

Thanks much John.

Yes, the menu is in a table and aligned to the far right of the page. Some of the menu dropdowns were hardcoded by 'left=???', but I have since abandoned that (the link I sent here is an od one, but contains all the data). I just was thrilled to hear it actually loaded everything in Safari...

Thanks again,

Bonewalker


Poster: John
Dated: Tuesday September 30 2003 - 15:26:28 BST

You're welcome.

Next question is why is it loading left on Safari... :?:


Poster: Hergio
Dated: Tuesday September 30 2003 - 18:55:16 BST

Quote:
Your source for menu_data_directory.php is coming down all run together

Hey john, thats the way the php is spit out by the server and rendered in the browsers. If you 'View Source' on that crap you see, it will be formatted as it should. At least I think so. ;)

And bw, your sub menus shouldnt have left= defined. This is making the menus not appear under their proper parents when opened. Removing the left and top attributes of your subs will make the subs appear immediately under the correct parent.

And the reason I think you are getting alignment problems is because the table cell you are putting the menu in has <td align=right> in it but the main menu code has alignment="left"; You are contradicting yourself... :)

Fix that stuff and it will help your viewing problems I think. Regarding loading time, can't tell why it loads at different rates. But your menu is very large, you might consider shrinking it some.


Poster: John
Dated: Tuesday September 30 2003 - 19:12:10 BST

Hergio wrote:
Hey john, thats the way the php is spit out by the server and rendered in the browsers. If you 'View Source' on that crap you see, it will be formatted as it should. At least I think so. ;)

That's exactly what gave me all the run-on, Dave. Wierd.

BW, if you haven't seen my post, RC13 is now available. MANY fixes, including Mac positioning.


Poster: bonewalker
Dated: Tuesday September 30 2003 - 19:55:48 BST

Thanks a bunch guys.

I appreciate all your efforts.

I will take steps to utilize your suggested improvements.

As far as RC13 goes, I am still waiting to hear back from Marty regarding my license. I can still only download the eval.

Bonewalker