473,414 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

<iframe> any good for anything?

I have been writing html/xhtml for nearly as long as I can remember. I
do not like frames and stopped using <frameset> a long time ago. But...

I have never used <iframe> for anything--never paid any attention to
browser support for the iframe element, nor to whatever arguments there
are for or against it.
Is there any consensus--at least here among subscribers to
c.i.w.a.html--over whether usr of the <iframe> tag is or was ever a good
idea? If it has been made obsolete (by css, or otherwise), was there
ever something to be said in favor of this element?
Thanks.
- Jacques
Jul 24 '05 #1
11 4038
On Mon, 11 Jul 2005 17:45:06 +0200, Jacques <ne****@wits.end> wrote:
Is there any consensus--at least here among subscribers to
c.i.w.a.html--over whether usr of the <iframe> tag is or was ever a good
idea?


It's standard HTML with good widespread support. This makes it a useful
alternatives to JavaScript tasks.

You can gain some windowed scrolling (as for frames), without the
brokenness (mainly for bookmarking) of frames.

It's useful instead of SSI when you're integrating content from multiple
servers, such as including external ad content.

Jul 24 '05 #2
On Mon, 11 Jul 2005 17:45:06 +0200, Jacques <ne****@wits.end> wrote:
Is there any consensus--at least here among subscribers to
c.i.w.a.html--over whether usr of the <iframe> tag is or was ever a good
idea?

Andy Dingley <di*****@codesmiths.com> wrote: You can gain some windowed scrolling (as for frames), without the
brokenness (mainly for bookmarking) of frames.
Inline frames are just as broken as regular frames when it comes to
bookmarking, linking, printing, creating orphaned pages, etc.
It's useful instead of SSI when you're integrating content from multiple
servers, such as including external ad content.


Which makes disabling inline frames in your browser an effective way to
increase the signal-to-noise ratio...

Did someone mention the word consensus? :-)
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"It's easier to stay out than to get out." - Mark Twain
Jul 24 '05 #3
Andy Dingley wrote:

(iframe)
It's standard HTML with good widespread support. This makes it a useful
alternatives to JavaScript tasks.
Which JavaScript tasks?
You can gain some windowed scrolling (as for frames), without the
brokenness (mainly for bookmarking) of frames.
It has exactly the same brokenness as frames.
It's useful instead of SSI when you're integrating content from multiple
servers, such as including external ad content.


Well, if it makes it easier for me to block the adverts with my hosts file,
then that sounds good.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 24 '05 #4
On Mon, 11 Jul 2005 20:37:53 +0100, David Dorward <do*****@yahoo.com>
wrote:
It's standard HTML with good widespread support. This makes it a useful
alternatives to JavaScript tasks.
Which JavaScript tasks?


The specific instance I was thinking of was in feeding external
commercial ads, where these are more sophisticated than the old banner
ad image + URL. If these were local then they'd be done by SSI, but as
they're supplied by 3rd party ad-brokers then they can't be. Ad
providers like DoubleClick, TangoZebra or even Google AdSense typically
use some varyingly complex chunk of JavaScript to build the ad content
dynamically on the page. Obviously this fails with JS turned off. An
IFrame is a somewhat cleaner interface to offer them.
You can gain some windowed scrolling (as for frames), without the
brokenness (mainly for bookmarking) of frames. It has exactly the same brokenness as frames.
IFrames (ignoring JavaScript tricks) don't have independent scrolling
from the page, as is commonly done with frames. Obviously this also
removes their usefulness for one of frame's most commonly used
functions, that of implementing shared menu bars without using SSI (as a
right-thinking developer ought)

You can bookmark framesets perfectly easily, the problem is that you can
only thus retrieve the default set of URLs for the constituent frames.
As IFrames don't navigate separately, this won't cause problems for
bookmarking them (or to distinguish from IE's kludge, the ability to
publish a URL, not just bookmark)

In a literal sense, your comment is true "[IFrames] have exactly the
same brokenness as frames." However if the OP reads the regular comments
here that "Frames are bad because they can't be bookmarked" (true
enough), it would be misleading for them to extend this real drawback
onto IFrames, because the context of that problem simply doesn't arise.
It's useful instead of SSI when you're integrating content from multiple
servers, such as including external ad content.

Well, if it makes it easier for me to block the adverts with my hosts file,
then that sounds good.


This is also a group for developers, not just web consumers.

I spent some of today configuring three sorts of garbage filter onto
Firefox, just so that I could read one of my own pages without risk of
epilepsy. Sometimes the job requires us to do what the client wants, not
what we'd prefer to be reading.

Jul 24 '05 #5
Andy Dingley wrote:
IFrames don't navigate separately


You've never seen an IFrame, have you?
Jul 24 '05 #6
Andy Dingley <di*****@codesmiths.com> wrote:
IFrames (ignoring JavaScript tricks) don't have independent scrolling
from the page, as is commonly done with frames.


Really? How do you explain IFRAME's SCROLLING attribute (values =
yes|no|auto).

--/<eith
Jul 24 '05 #7
On Tue, 12 Jul 2005 10:25:09 -0500, Keith Baird
<ke*********@mail.utexas.edu> wrote:
IFrames (ignoring JavaScript tricks) don't have independent scrolling
from the page, as is commonly done with frames.


Really? How do you explain IFRAME's SCROLLING attribute (values =
yes|no|auto).


Sorry - I should have said navigation, not scrolling.
Jul 24 '05 #8
Andy Dingley <di*****@codesmiths.com> wrote:
IFrames (ignoring JavaScript tricks) don't have independent scrolling
from the page, as is commonly done with frames.

Keith Baird <ke*********@mail.utexas.edu> wrote: Really? How do you explain IFRAME's SCROLLING attribute (values =
yes|no|auto).

Andy Dingley <di*****@codesmiths.com> wrote: Sorry - I should have said navigation, not scrolling.


Really? How do you explain IFRAME's NAME attribute, which works with the
TARGET attribute the same way a regular frame's NAME attribute does.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Experience is what allows you to recognize a mistake when you make it again."
Jul 24 '05 #9
Here are some <iframe> examples I made.
http://dwight.tendirect.com/hhelper/...mes/index.html

Jacques wrote:
I have been writing html/xhtml for nearly as long as I can remember. I
do not like frames and stopped using <frameset> a long time ago. But...

I have never used <iframe> for anything--never paid any attention to
browser support for the iframe element, nor to whatever arguments there
are for or against it.
Is there any consensus--at least here among subscribers to
c.i.w.a.html--over whether usr of the <iframe> tag is or was ever a good
idea? If it has been made obsolete (by css, or otherwise), was there
ever something to be said in favor of this element?
Thanks.
- Jacques


Jul 24 '05 #10
if you want to acheive the same effect as an IFRAME (i.e. a content
area in the browser window that scrolls) but use a far simpler
technique - simply give a DIV a width and a height and set the overflow
to auto. (overflow:auto).

(assuming your content is longer than the height you've specified for
the DIV of course!)

Jul 24 '05 #11
ja******@btopenworld.com wrote:
if you want to acheive the same effect as an IFRAME (i.e. a content
area in the browser window that scrolls) but use a far simpler
technique - simply give a DIV a width and a height and set the overflow
to auto. (overflow:auto).


FYI, scrolling divs have accessiblity problems, especially with keyboard
navigation. Use with extreme caution.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 24 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: O.J. Tibi | last post by:
hi guys, i was wondering if you could help me with a small problem. i need to have an <iframe> to behave like a <div>, in such a manner that: 1) the <iframe> should have its own display space,...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
9
by: Julia Briggs | last post by:
How do I construct a <iframe> or equivalent for FireFox/NS browsers, inside a screen centered <div> tag? Can it be done?
2
by: Axel Schick | last post by:
Hello everybody! I encountered a strange behavior when trying to read the scrollTop propery of the <body> element from inside an iFrame: <body onmousemove = "window.status =...
2
by: chaitatp | last post by:
Hi guys, I have posted a similar question before but this post has some different. The similar link is: ...
5
by: Grzesiek | last post by:
Hi! I have created page which contains some menu buttons and <iframe> with sub-page. Each menu action on the master web site should change content of iframe (by changing src attribute). But how to...
1
by: tilt | last post by:
Hello, I use an object element to replace the iframe element in ie, like this: <object id="x_obj" data="http://.../" type="text/html"> <iframe name="x_if" id="x_if"...
0
by: diver | last post by:
I was using an <iframe> to load a website within my .aspx page. When the user "logged out", I called a javascript break out function to breakout of the frame and load the appropriate page when...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.