Page wont load on some machines.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mnw
Beginner
Beginner
Posts: 9
Joined: Mon Nov 01, 2004 12:51 pm

Page wont load on some machines.

Post by mnw »

I have a page that is in the works and mostly it works just fine (Milonic v5.4). However on some machines the home page simply freezes after loading 1 image and refuses to load the menu or the rest of the page?

http://www.caspianlearning.co.uk/index1.html

I am having trouble emulating this problem in order to locate the source of the trouble.

Could it be security options for the browser (IE6)?
Could it be to do with the fact that the page uses Iframes?

Please help

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

Post by kevin3442 »

mnw,

Don't know what it could be, as I can't reproduce the problem either. Your page loads fine for me using IE6/WinXP. Maybe someone else gets the "stuck page" problem?

Kevin
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Post by bobwill »

I had the same problem with Opera 6 and Opera 7. Worked fine whe I use IE 6.

Hope this is of some help.
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 mnw,

I had a few minutes so I had another look. I see a couple of issues, one of which may explain the problem you're experiencing. But the first issue is this: I notice that you're using an unlicensed copy of the menu, but it seems to me that, even though it deals with an educational product, your site is a commercial site. I'm guessing that your plan must be to develop the site, work out the kinks, then license the menu. Makes sense. But then I noticed that the link to milonic.com that Milonic requires to use an unlicensed copy is a hidden link. I'm left wondering why the required link is hidden? Not trying to be a jerk... just thought we could clear that up before proceeding with possible solutions.

Cheers,

Kevin
mnw
Beginner
Beginner
Posts: 9
Joined: Mon Nov 01, 2004 12:51 pm

Post by mnw »

Yeah, I have notified the company that they will need to licence when they are up and running and the site is ready. The link is hidden for the sake of the 'look n' feel' of the site. Problem I am currently having is only on a couple of machines (those of the owners of the company...typical).

But to re itterate...the page featuring the menu refuses to load...is the 'stuck page' issue a know thing AND if so IS THERE AN EASY FIX, OR IS THERE A SPECIFIC AREA OF THIS FORUM i SHOULD LOOKING AT. (sorry not shouting just careless).

Thanks for all your help so far.

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

Post by John »

Not having a problem here, either (also XP Pro/IE6).

You also need to upgrade. Current version is 5.51, with 5.52 right around the corner. As noted on the home page, the latest version is all we can support.
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

mnw wrote:Yeah, I have notified the company that they will need to licence when they are up and running and the site is ready. The link is hidden for the sake of the 'look n' feel' of the site.
I figured that was probably it... thanks for taking the time to make it clear.
mnw wrote:But to re itterate...the page featuring the menu refuses to load...is the 'stuck page' issue a know thing...
No, it's unique.
mnw wrote:AND if so IS THERE AN EASY FIX, OR IS THERE A SPECIFIC AREA OF THIS FORUM i SHOULD LOOKING AT. (sorry not shouting just careless).
You're in exactly the right place. Not sure about "easy" but here's my first go at it:

I looked at the code for your main page. I see a couple ofthings that you might change:

(1) The script that moves and resizes the browser window is between the </head> and the <body>, in a sort of nether world. Don't know if this would really have the effect you're seeing, but I'd move it into one of the proper sections.

(2) Probably of more importance is the code where the menu scripts are being loaded. I see:

Code: Select all

<script type="text/javascript" src="scripts_css/milonic_src.js"></script>	
<param copyright="JavaScript Menu by Milonic - http://milonic.com"><!-- </param> -->
<script	type="text/javascript">
<!-- 
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=scripts_css/mmenuns4.js><\/scr"+"ipt>");		
  else _d.write("<scr"+"ipt language=JavaScript src=scripts_css/mmenudom.js><\/scr"+"ipt>"); 

</script>
<script type="text/javascript" src="scripts_css/menu_data.js"></script>
Two things here:

(a) On line 2 of the code above, the closing </param> tag (for the copyright info) is inside of html comment tags: <!-- </param> -->. So, the <param> block is never closed.

(b) On line 4 of the code above, there's an opening html comment tag, <!--, without a matching closing comment tag anywhere further down tha page. A closing comment tag would normally appear on line 7 above, which is currently blank, but the more recent practice has been to remove those comment tags altogether, because (if I remember right) they interfere with some releases of NS4.7x. The upshot is that the way it stands now, all of the page's code past line 4 is "commented out". Your mmenudom.js and menu_data.js files don't load, so no menus. You didn't mention which image loads before the page freezes, but I'd be willilng to be that it's logobottomright.gif, because that image is loaded at the top of the body, before the comment problems. If it is logobottomright.gif that loads before the page freezes, that would tend to support the theory.

I'd try replacing the above code with:

Code: Select all

<script type="text/javascript" src="scripts_css/milonic_src.js"></script>
<param copyright="JavaScript Menu by Milonic - http://milonic.com"></param>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=scripts_css/mmenuns4.js><\/scr"+"ipt>");
  else _d.write("<scr"+"ipt language=JavaScript src=scripts_css/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="scripts_css/menu_data.js"></script>
Hope that helps,

Kevin
mnw
Beginner
Beginner
Posts: 9
Joined: Mon Nov 01, 2004 12:51 pm

Yahoo

Post by mnw »

Thanks kevin3442. That code clean up has done the job. Amazing what a pair (I assume) of fresh eyes can do. And also please note that the company have now licenced the menu :-)...one more thing though how do I go about inserting the licence number? Probably answered elsewhere on this forum so I'll go have a look. Thanks again.
mnw
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Yahoo

Post by kevin3442 »

mnw wrote:Thanks kevin3442. That code clean up has done the job. Amazing what a pair (I assume) of fresh eyes can do.
You're welcome. I've actually been been called "four eyes" before... but that was a long time ago. ;)

Kevin
Post Reply