Forum Moderators: open

Message Too Old, No Replies

parent!= self HOW to FRAME it

         

Romster

11:06 am on Nov 27, 2004 (gmt 0)

10+ Year Member



The page on another website has

if (window.frames) {
if (parent!= self) {
top.location.href="http://another.com/"
}
}

But I need to put it in some kind of frame.
Is there a way arround this

Crustov

11:31 am on Nov 27, 2004 (gmt 0)

10+ Year Member



Hi Romster,

I haven't tried this, but I think it would be possible to make your frame src a dynamic file, then pre-parse the html file before displaying it.

So your frame src="stripFrameKiller.php?src=anotherdomain"

Then the stripFrameKiller.php would contain:
open src
find "top.location.href="
strip the entire line
echo the page

Please let me know what you think.

DrDoc

9:43 pm on Nov 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



But I need to put it in some kind of frame

That will, in most cases, violate the copyright of the other page. If, for example, you were to link to my site, and have it open up within your frameset, you are "stealing" my page content. To the user it appears as if you are the owner of the other site as well... Keeping an external site within your frameset without explicit permission is no different than putting someone else's image on your site without permission.

Just something to think about.

Disclaimer: The above is not to be considered legal advise, but is merely a friendly pointer to spark a thought you may otherwise have missed. To find out the exact applicable laws and ensure that you are protected, please seek legal advise from an attorney near you.

Crustov

3:52 pm on Nov 29, 2004 (gmt 0)

10+ Year Member



I agree.

After further consideration, the solution that I posted above is not a very ethical one.

The content publisher has the framekiller for a reason, so I suggest contacting the publisher, if you would like a version without it.