Is there frame buster code built into the menu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
craigr
Beginner
Beginner
Posts: 3
Joined: Wed Jan 10, 2007 10:09 pm

Is there frame buster code built into the menu?

Post by craigr »

Hi

We are loading our site in a hidden frame (domain cloaking) but the site keeps redirecting out of the frameset to the main URL.

This behaviour is seen in both IE7 and Firefox and stops happening as soon as we comment the menu out.

Is there some "frame buster" code built into the menu code files?

Thanks in advance
Craig
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

There is nothing in the menu that would cause this.

Howver, the code taken from http://milonic.com does break out of frames so if you've copied the code from our home page this will be the reason.

It's better to use the code from the download as it's more generic.
craigr
Beginner
Beginner
Posts: 3
Joined: Wed Jan 10, 2007 10:09 pm

Post by craigr »

Thanks Andy

I am sure we used the code from the download - but if you can point me to the specific part that I can check our codebase.

Cheers
Craig
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

If you see this:

Code: Select all

if(parent.frames.length)top.location=document.location;
Then there is a good chance it came from our home page. If you see the above, just delete it and all should be good again
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

On the main site the code is

Code: Select all

<!--
	 Milonic DHTML Website Navigation Menu Version 5.0
	 Copyright 2006 (c) Milonic Solutions Limited (UK). All Rights Reserved.
	 Please visit http://milonic.com/ for more information.
-->	
<script src="/milonic_src.js" type=text/javascript></script>	
<script type="text/javascript">
if(parent.frames.length)top.location=document.location;
if(ns4)_d.write("<scr"+"ipt src=/mmenuns4.js type=text/javascript><\/scr"+"ipt>");		
  else _d.write("<scr"+"ipt src=/mmenudom.js type=text/javascript><\/scr"+"ipt>"); 
 </script>
You can see the if(parent.frames etc.

Ruth
craigr
Beginner
Beginner
Posts: 3
Joined: Wed Jan 10, 2007 10:09 pm

Post by craigr »

Brilliant. That was the problem.

All sorted now. Thanks for the speedy resolution.

Cheers
Craig
Post Reply