Welcome to WebmasterWorld Guest from 50.17.5.36

Forum Moderators: incrediBILL

Message Too Old, No Replies

Breaking all links out of iframe

without modifying each link

     
5:51 am on Oct 15, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 10, 2003
posts:145
votes: 0


Hi,
Does anyone have a tip on how to do this?
The page I want loaded into the iframe is not my own page and I cannot change the links.
I did a search of the forums but could not find a solution, thanks in advance.
9:09 am on Oct 15, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 19, 2003
posts:1001
votes: 0


This would be called 'screenscraping' and in most circumstances can get you into trouble. You need to be sure that you have some kind of right to that content - either 'fair use', which is really, really shaky, or else explicit permission from the content owner. You'll need to learn some advanced scripting to pull it off. Google 'screenscraping tutorial' + your favorite scripting language to learn more.
9:45 am on Oct 15, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 10, 2003
posts:145
votes: 0


Hi,
I'm not trying to steal anyone's content, I'm trying something on a page I use personally - specifically, opening several search engines in one page.
If I remember correctly, screenscraping involves modifying the external page (maybe wrong); is there no way I can control from my own page the location of the links clicked in the iframe?
11:05 am on Oct 15, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


If I understand you correctly, you might be able to use javascript and assign the document.base object of the framed file. If that doesn't work I don't think anything else will.

Kaled.

5:36 am on Oct 31, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 10, 2003
posts:145
votes: 0


Sorry for the delay in replying.
I didn't realise it was so involved to do something like this, but thanks for that tip, I'll have a look into it.