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:44
Is there frame buster code built into the menu?
Poster: craigr
Dated: Wednesday January 10 2007 - 21:13:29 GMT
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
Poster: Andy
Dated: Wednesday January 10 2007 - 22:20:57 GMT
Hi,
There is nothing in the menu that would cause this.
Howver, the code taken from http://www.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.
Poster: craigr
Dated: Wednesday January 10 2007 - 22:44:06 GMT
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
Poster: Andy
Dated: Wednesday January 10 2007 - 22:46:55 GMT
If you see this:
Code:
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
Poster: Ruth
Dated: Wednesday January 10 2007 - 22:47:01 GMT
Hi,
On the main site the code is
Code:
<!--
Milonic DHTML Website Navigation Menu Version 5.0
Copyright 2006 (c) Milonic Solutions Limited (UK). All Rights Reserved.
Please visit http://www.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>
Milonic DHTML Website Navigation Menu Version 5.0
Copyright 2006 (c) Milonic Solutions Limited (UK). All Rights Reserved.
Please visit http://www.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