I’m not sure if this is just something I’m missing, but how do you display a section (perhaps just the far right column) of an external website using iFrame?
I can display from the top left but want to show a small section on the right hand side.
You can’t do this with an iframe. An iframe is nothing more or less than a window, cut into your site, through which you can see another site.
Walter
On Jan 13, 2012, at 9:11 AM, Graeme wrote:
Hi All,
I’m not sure if this is just something I’m missing, but how do you display a section (perhaps just the far right column) of an external website using iFrame?
I can display from the top left but want to show a small section on the right hand side.
What you’re describing sounds like a “scraping” application, where you show only a portion of a foreign page. It’s non-trivial. If the content you’re trying to read is also available in RSS, then you could use my ReadFeed Action, which allows you to publish someone else’s RSS feed as HTML within your page.
Back in the iframe, you might look through the source code of the foreign page and see if there’s an ID on the element you want to heave into view. If there is, you could add that ID to the URL you enter in your iframe.
Say that page had a News feature, and looking at the HTML, you see
… the news is here …
, then you could put http://example.com/page.html#news in your iframe URL field, and that would load the page into the iframe and then “anchor” to that ID.
Naturally, this is very fragile – if the owner of the other page changes the HTML, this would stop working. Scraping the page is just as fraught with peril.