PDA

View Full Version : Frame Killer Problem


dodidrei
09-17-2002, 10:25 PM
Hello Forum,

I've ha problem with a frame killer when I include a site. so my question ist: is it possible to "ignore" the frame killer or what can i do for including the frame in my site? many thanx for your help. and here's the frame killer javascript code:

function restoreFrameset(){
tmpURL = replaceStr(location.href,"_Hauptbereich","");
if(parent.frames.length==0||tmpURL!=top.location.href){
top.location.href = tmpURL;
}
}


restoreFrameset();


king regards,
bettina

beetle
09-17-2002, 10:38 PM
what does your replaceStr() function do? replace "_Hauptbereich" with "" ???

(if so, there's and existing replace() method for strings that does that)

dodidrei
09-18-2002, 06:58 AM
Hello,

thank you. but the problem is the frame killer code is not on my site. its on the site i want to include in my. so when i include the site the framekiller sets a new top.location. so my question is: what must i do that it doesnt set a new location to top.location.

thats my question.

sorry for really bad english :-(


king regards,
bettina

gmorphus
09-18-2002, 07:08 AM
I must say I can't fully understand your problem.
I mean, if you control on the code in the site you want to include why not just cancel the framekiller?

If you don't have control on this code so I'm guessing you can't do anything.

And another thing, what replaceStr does??

martin_narg
09-18-2002, 07:56 AM
it might work with something like this:

create simple html page with no frames:

<html>
<head>
<script>
top.location.href = "framesPage.html"; // change this to your frames page
</script>
</head>
<body>
redirecting.....
</body>
</html>


hope this helps

m_n

beetle
09-18-2002, 09:02 AM
Well, you could POSSIBLY add an onUnLoad event to your page that could detect the framekiller making the page change, but onUnLoad doesn't cancel, so there would be no point.

Sorry, I don't think you're gonna get around this.

Mr J
09-18-2002, 03:21 PM
The whole point of a "Frame Killer" is to prevent what you are trying to do