Click to See Complete Forum and Search --> : hide text in html frame


apps
01-14-2010, 11:39 AM
how to hide some text of other site in frames
i have created a frame where i am calling other website, in that frame i want some of the thing should not appear like footer and some images of the called website. how i can do this in frame.

frame created as

<iframe src="http://somewebsite.com" width="800" height="600">
</iframe>

now from the website somewebsite.com i dont want its footer to appear which is having code as :

<div id="imFooter">
<hr class="imInvisible" />
<span id="imFooter_R"><a id="imMailLink" href="mailto:something @ somewebsite.com" title="">mail</a></span>
<br class="imClear" />
</div>

apps
01-15-2010, 07:06 AM
hello anyone ?

is there any way we can achieve this ? may be using some script or something in the frame ?
or if frame is not the rt way of doing this then how can we achieve it ?

criterion9
01-15-2010, 07:29 AM
If the page is one the same domain as the parent you can use javascript to "hide" the div with that particular id. If they are from different domains you'll need to scrape the page using a server-side language (PHP, ASP, JSP, etc) in order to remove/hide the unwanted text.

Having said that, the site owner you are taking content from probably won't appreciate the removal of copyright/etc information and you may be looking at potential legality issues arising.

The best situation is where the site you are taking information from offers an rss feed or API for grabbing the information you want. That way there can be no question about whether you are stealing intellectual property or not. :)

apps
01-15-2010, 09:12 AM
the site is from some other domain
and there is no such issue of copyright and all
so kindly let me know how to do it

criterion9
01-15-2010, 10:42 AM
If they are from different domains you'll need to scrape the page using a server-side language (PHP, ASP, JSP, etc) in order to remove/hide the unwanted text.

What language do you have access to?

apps
01-16-2010, 07:15 AM
html

criterion9
01-16-2010, 09:02 AM
If they are from different domains you'll need to scrape the page using a server-side language (PHP, ASP, JSP, etc) in order to remove/hide the unwanted text.

What language do you have access to?


html

Then it is not possible to do what you ask.

apps
01-16-2010, 01:49 PM
but my hosting server can support php, java and all

criterion9
01-16-2010, 03:13 PM
Usually discount hosts support one of the following (PHP, Java, ASP, etc)...I'm at a loss for how to help you since I'm assuming you said earlier you had html only.

donatello
01-16-2010, 06:22 PM
You need a screenscraper script.

Check my posts here, I posted one for someone else not long ago.