<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Pity the poor IFRAME...</title>
	<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME/</link>
	<description>Comments on Ask MetaFilter post Pity the poor IFRAME...</description>
	<pubDate>Thu, 09 Mar 2006 07:24:37 -0800</pubDate>
	<lastBuildDate>Thu, 09 Mar 2006 07:24:37 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Pity the poor IFRAME...</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME</link>	
		<description>Why exactly does everyone hate IFRAMEs so much? Is there really a good reason not to use them?  &lt;br /&gt;&lt;br /&gt; Yes, I know CSS, but I&apos;ve encountered the case where I want content to appear within a certain area of a page, but there&apos;s a lot of text, so I want it to be scrollable within that area. Can I achieve this any other way (besides real frames)?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.34031</guid>
		<pubDate>Thu, 09 Mar 2006 07:22:32 -0800</pubDate>
		<dc:creator>ab3</dc:creator>
		
			<category>IFRAME</category>
		
			<category>HTML</category>
		
			<category>webdesign</category>
		
	</item> <item>
		<title>By: cerebus19</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530514</link>	
		<description>DIVs can be scrollable.  Just set &quot;overflow:auto&quot; in the CSS for a DIV, and set dimensions on it to whatever you want the visible portion to be, and you&apos;ll get scrollbars if the contents are bigger than the set dimensions.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530514</guid>
		<pubDate>Thu, 09 Mar 2006 07:24:37 -0800</pubDate>
		<dc:creator>cerebus19</dc:creator>
	</item><item>
		<title>By: matthewr</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530522</link>	
		<description>Weren&apos;t IFRAMEs originally a Microsoft invention? If so, that&apos;ll probably be the reason. The fact that javascript asynchronous HTTP requests are also the spawn of Redmond is, curiously enough, rarely mentioned.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530522</guid>
		<pubDate>Thu, 09 Mar 2006 07:28:57 -0800</pubDate>
		<dc:creator>matthewr</dc:creator>
	</item><item>
		<title>By: Fezboy!</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530554</link>	
		<description>I think there is a place where IFrames are useful, and there are times when they are anathema.  The latter cases primarily occuring where document integrity and recordkeeping are considerations.  I prefer the use of &amp;lt;div&amp;gt; + CSS +  &lt;acronym title=&quot;crappity market buzzword&quot;&gt;AJAX&lt;/acronym&gt;&#8212;no matter who developed it&#8212;myself, but that&apos;s probably because it is a lot more like &lt;acronym title=&quot;eXtensible Markup Language&quot;&gt;XML&lt;/acronym&gt;/&lt;acronym title=&quot;eXtensible Stylesheet Language--Transformations&quot;&gt;XSLT&lt;/acronym&gt;.  This understanding is useful in rationalizing the fact that I am, in the end, messing with document integrity by not handling it as a discrete unit.  &lt;br&gt;
&lt;br&gt;
[insert long discussion of whether the document presented to the user or the document stored on the server is the thing we should call The Document here]&lt;br&gt;
&lt;br&gt;
cerebus answered your last question, matthewr your first, so I thought I&apos;d take a stab at the middle one.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530554</guid>
		<pubDate>Thu, 09 Mar 2006 07:47:29 -0800</pubDate>
		<dc:creator>Fezboy!</dc:creator>
	</item><item>
		<title>By: wackybrit</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530556</link>	
		<description>Frames always get a bad wrap because of their accessibility problems. You&apos;re not going to see IFRAME content on Lynx, on a screen reader, etc, etc. For some reason people get quite high and mighty on the whole accessibility thing, but I guess someone has to :)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530556</guid>
		<pubDate>Thu, 09 Mar 2006 07:50:07 -0800</pubDate>
		<dc:creator>wackybrit</dc:creator>
	</item><item>
		<title>By: Fezboy!</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530559</link>	
		<description>oo&apos;er, and I forgot to add that the use of IFrames can really mangle the accessibility of a document and confuse the bejesus out of screen readers.  Basically, if your only consideration is visual presentation and you could care less about any other possible use of your HTML page then there is absolutely no reason to avoid IFrames.  To the degree that this case does not obtain, you would want to consider other options.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530559</guid>
		<pubDate>Thu, 09 Mar 2006 07:52:24 -0800</pubDate>
		<dc:creator>Fezboy!</dc:creator>
	</item><item>
		<title>By: SpecialK</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530560</link>	
		<description>That, and it&apos;s two+ requests to the server where you could be making one. On slower connections (like my connection from my friend&apos;s ranch out in the boonies, where I occasionally spend the night), iFrames and other framesets can be painful.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530560</guid>
		<pubDate>Thu, 09 Mar 2006 07:52:38 -0800</pubDate>
		<dc:creator>SpecialK</dc:creator>
	</item><item>
		<title>By: Fezboy!</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530561</link>	
		<description>&lt;small&gt;thus, as if on cue, I fufill wackybrit&apos;s prophecy&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530561</guid>
		<pubDate>Thu, 09 Mar 2006 07:53:27 -0800</pubDate>
		<dc:creator>Fezboy!</dc:creator>
	</item><item>
		<title>By: delmoi</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530572</link>	
		<description>How do you do Ajax without iframes? (I mean invisible iframes, but iframes still, right?)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530572</guid>
		<pubDate>Thu, 09 Mar 2006 08:09:32 -0800</pubDate>
		<dc:creator>delmoi</dc:creator>
	</item><item>
		<title>By: twistedonion</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530574</link>	
		<description>Just have one point to make here - search engines don&apos;t really get iframes. Some won&apos;t index it at all. Some will index it as a seperate standalone page.&lt;br&gt;
&lt;br&gt;
cerebus19 is spot on - use a div</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530574</guid>
		<pubDate>Thu, 09 Mar 2006 08:11:54 -0800</pubDate>
		<dc:creator>twistedonion</dc:creator>
	</item><item>
		<title>By: twistedonion</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530576</link>	
		<description>Delmoi, no you can use divs. Display:none will make them invisible. Then you can redefine the visibility with Javascript.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530576</guid>
		<pubDate>Thu, 09 Mar 2006 08:13:02 -0800</pubDate>
		<dc:creator>twistedonion</dc:creator>
	</item><item>
		<title>By: Fezboy!</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530577</link>	
		<description>&lt;b&gt;delmoi&lt;/b&gt; &lt;a href=&apos;http://ask.metafilter.com/mefi/34031#530572&apos;&gt;writes&lt;/a&gt;  &lt;em&gt;&quot;How do you do Ajax without iframes? (I mean invisible iframes, but iframes still, right?)&quot;&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
You use the DOM API to create/delete nodes on the document tree.  You use the same API to unpack the information you get from the AJAX call so that you can create the content nodes.  It&apos;s more or less the same as using an IFrame except that your content is integrated into the existing document instead of living in a container surrounded by the document.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530577</guid>
		<pubDate>Thu, 09 Mar 2006 08:14:11 -0800</pubDate>
		<dc:creator>Fezboy!</dc:creator>
	</item><item>
		<title>By: furtive</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530578</link>	
		<description>delmoi:  by using the XMLHttpRequest object instead of an iframe to fetch a request.  Of course, a lot of the Ajax toolkits out there use iframe as a &quot;fail gracefully&quot; fallback with older browsers.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530578</guid>
		<pubDate>Thu, 09 Mar 2006 08:14:33 -0800</pubDate>
		<dc:creator>furtive</dc:creator>
	</item><item>
		<title>By: Rash</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530580</link>	
		<description>&lt;em&gt;I want content to appear within a certain area of a page&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Some percentage of your audience will always find this attitude a problem. Think of people viewing your page on very small screens, or those (like me) who prefer windows of certain dimensions. Your frames may go out of whack immediately I resize the browser.&lt;br&gt;
&lt;br&gt;
But with Firefox I can easily thwart your intentions, so frames no longer present the problem they did previously (right click-&amp;gt;This Frame-&amp;gt;Show Only this Frame).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530580</guid>
		<pubDate>Thu, 09 Mar 2006 08:16:51 -0800</pubDate>
		<dc:creator>Rash</dc:creator>
	</item><item>
		<title>By: blue_beetle</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530612</link>	
		<description>I love IFRAMES because they&apos;re the easiest to block with AdBlock in Mozilla. I wish everyone used them, especially for ads, I haven&apos;t seen an IFRAME advertisement in a long, long, time.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530612</guid>
		<pubDate>Thu, 09 Mar 2006 08:35:21 -0800</pubDate>
		<dc:creator>blue_beetle</dc:creator>
	</item><item>
		<title>By: Robert Angelo</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530615</link>	
		<description>I guess I&apos;m missing something but what about this situation, which I encounter frequently:  My client has content on 4 servers.  He wants his page to display content that is generated from (at least) servers 1, 2, and 3.  I can do that very easily with IFRAMEs, but I don&apos;t see how to do that with DIVs.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530615</guid>
		<pubDate>Thu, 09 Mar 2006 08:36:41 -0800</pubDate>
		<dc:creator>Robert Angelo</dc:creator>
	</item><item>
		<title>By: Fezboy!</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530647</link>	
		<description>&lt;b&gt;Robert Angelo&lt;/b&gt; &lt;a href=&apos;http://ask.metafilter.com/mefi/34031#530615&apos;&gt;writes&lt;/a&gt;  &lt;em&gt;&quot;I can do that very easily with IFRAMEs, but I don&apos;t see how to do that with DIVs.&quot;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;It &lt;em&gt;is&lt;/em&gt; easier to do this with IFrames.  It is doable using AJAX + DOM and creates a unified document.  Basically&lt;ol&gt;&lt;li&gt;User requests &quot;main&quot; HTML file&lt;/li&gt;&lt;li&gt;Browser triggers &apos;onload&apos; event&lt;/li&gt;&lt;li&gt;Embedded/linked JavaScript uses XMLHTTPRequest object to get content from other  servers&lt;/li&gt;&lt;li&gt;Javascript parses content from additional servers using XPath or DOM&lt;/li&gt;&lt;li&gt;Javascript uses DOM API to generate new nodes on the document tree&lt;/li&gt;&lt;li&gt;The browser updates the display based on the changes made to the DOM&lt;/li&gt;&lt;/ol&gt;As is the case with all things Web-related, there is the easy way, the correct way, and the expedient way.  Seldom do these three converge.  It is up to you to weigh the costs/benefits and pick a strategy.  &lt;small&gt;I am trying really hard to be neutral since this is AskMe, but I would recommend considering the long-term benefits of doing things the correct way from the outset.&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530647</guid>
		<pubDate>Thu, 09 Mar 2006 09:15:44 -0800</pubDate>
		<dc:creator>Fezboy!</dc:creator>
	</item><item>
		<title>By: Fezboy!</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530657</link>	
		<description>&lt;strong&gt;blue_beetle&lt;/strong&gt;:  ssssssshhhhhhhh!  Ignorance is bliss.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530657</guid>
		<pubDate>Thu, 09 Mar 2006 09:20:56 -0800</pubDate>
		<dc:creator>Fezboy!</dc:creator>
	</item><item>
		<title>By: unixrat</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530670</link>	
		<description>IIRC, IFrames were a huge security risk for a while.  MS invented them and tossed in a few IE security holes to encourage their development, I guess.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530670</guid>
		<pubDate>Thu, 09 Mar 2006 09:30:18 -0800</pubDate>
		<dc:creator>unixrat</dc:creator>
	</item><item>
		<title>By: MetaMonkey</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530797</link>	
		<description>Is AJAX significantly harder to code than IFrames? I&apos;m quite happy with IFrames, but I know little about javascript, DOM &amp;amp; XML.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530797</guid>
		<pubDate>Thu, 09 Mar 2006 11:10:22 -0800</pubDate>
		<dc:creator>MetaMonkey</dc:creator>
	</item><item>
		<title>By: idontlikewords</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530816</link>	
		<description>Rather than go all in and learn AJAX (which I *will* do when time permits) I&apos;ve been using IFrames on a intranet app that I&apos;m coding for work. It allows me some of the flexibility and real-time feedback of AJAX, but without wading into the mire of XMLHttp and all that. Since it&apos;s an internal site, I don&apos;t have to worry too much about search engine indexing or browser incompatibility.&lt;br&gt;
&lt;br&gt;
So I guess my point is, if you&apos;re *aware* of the limitations and potential downsides of IFrames, feel free to use them as you see fit, but don&apos;t think of them as equivalent with more robust methods like divs / ajax / etc.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530816</guid>
		<pubDate>Thu, 09 Mar 2006 11:26:49 -0800</pubDate>
		<dc:creator>idontlikewords</dc:creator>
	</item><item>
		<title>By: mikeh</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530827</link>	
		<description>It&apos;s worth noting that iframes don&apos;t engender nearly as much hate as the good old deprecated frames that used to be ubiquitous.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530827</guid>
		<pubDate>Thu, 09 Mar 2006 11:38:20 -0800</pubDate>
		<dc:creator>mikeh</dc:creator>
	</item><item>
		<title>By: macinchik</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530841</link>	
		<description>here&apos;s an edge case for you: iframes can be useful because they are stateful when the user browses off the page and then clicks the back button. if you are not allowed to set cookies, iframes will preserve the trail, where dynamically swapped divs will not.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530841</guid>
		<pubDate>Thu, 09 Mar 2006 11:58:58 -0800</pubDate>
		<dc:creator>macinchik</dc:creator>
	</item><item>
		<title>By: robhuddles</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530865</link>	
		<description>&lt;cite&gt;It&apos;s worth noting that iframes don&apos;t engender nearly as much hate as the good old deprecated frames that used to be ubiquitous.&lt;br&gt;
posted by mikeh &lt;/cite&gt;&lt;br&gt;
&lt;br&gt;
It&apos;s also worth noting that &lt;a href=&quot;http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Frameset&quot;&gt;frames&lt;/a&gt; aren&apos;t deprecated. I&apos;m not saying anything about their relative merit - just that they are, in fact, still a valid part of the XHTML spec.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530865</guid>
		<pubDate>Thu, 09 Mar 2006 12:29:12 -0800</pubDate>
		<dc:creator>robhuddles</dc:creator>
	</item><item>
		<title>By: Fezboy!</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#530929</link>	
		<description>That&apos;s a good point, macinchik and bears repeating.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-530929</guid>
		<pubDate>Thu, 09 Mar 2006 13:10:50 -0800</pubDate>
		<dc:creator>Fezboy!</dc:creator>
	</item><item>
		<title>By: boo_radley</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#531045</link>	
		<description>I&apos;d like to plug my favorite new web technique: &lt;a href=&quot;http://microformats.org/wiki/rest/ahah&quot;&gt;AHAH&lt;/a&gt;. It&apos;s just asyncronous html, much simpler to deal with than AJAX, imo.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-531045</guid>
		<pubDate>Thu, 09 Mar 2006 14:29:15 -0800</pubDate>
		<dc:creator>boo_radley</dc:creator>
	</item><item>
		<title>By: Rhomboid</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#531051</link>	
		<description>I find that there is a usability problem with iframes or in general any sub-region on a page that is scrollable independantly of the main page.  The issue is what gets scrolled when you use the mouse wheel, which is how I and I suspect many people do all of their scrolling.  The way most browsers handle it as far as I know is that it depends on what region the mouse is hovering over -- if it&apos;s on top of the IFRAME, then that gets scrolled, otherwise, scroll the main page.  This results in a horrible user experience when I&apos;m trying to read a page and I want to scroll down, but my mouse just happens to be on the wrong region.  What happens is some random unrelated region of the page gets scrolled, instead of the part of the page I care about.  It makes me stop and mentally say a small little curse at the person that designed the page.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-531051</guid>
		<pubDate>Thu, 09 Mar 2006 14:35:00 -0800</pubDate>
		<dc:creator>Rhomboid</dc:creator>
	</item><item>
		<title>By: Mitheral</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#531056</link>	
		<description>&lt;b&gt;Fezboy!&lt;/b&gt; &lt;a href=&apos;http://ask.metafilter.com/mefi/34031#530559&apos;&gt;writes&lt;/a&gt;  &lt;em&gt;&quot;Basically, if your only consideration is visual presentation and you could care less about any other possible use of your HTML page then there is absolutely no reason to avoid IFrames. &quot;&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
At which point why not just admit you are not web friendly and post PDFs?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-531056</guid>
		<pubDate>Thu, 09 Mar 2006 14:38:20 -0800</pubDate>
		<dc:creator>Mitheral</dc:creator>
	</item><item>
		<title>By: thanotopsis</title>
		<link>http://ask.metafilter.com/34031/Pity-the-poor-IFRAME#531135</link>	
		<description>Prior to AJAX, I used IFRAMES to import live content to my page, but I filled the page with DIVs.&lt;br&gt;
&lt;br&gt;
The reason I did this in a roundabout manner is that IFRAMEs are more difficult to control with CSS.  For example, I have a lot of pages that rely on static column headers for database driven reports.  I need the scrollable area of the report (the data rows) to align perfectly with the headers, and the IFRAME&apos;s width and height isn&apos;t controllable, in relation to the rest of the page, with any consistent certainty.  This problem evidences itself much more when you&apos;re trying to maintain cross-browser support.&lt;br&gt;
&lt;br&gt;
So, my method was to use hidden IFRAMEs to drag in dynamic content, take the value of the target DIV&apos;s innerHTML attribute and make it equal to the IFRAME&apos;s body.innerHTML once the IFRAME was done loading.&lt;br&gt;
&lt;br&gt;
I used to use a similar method back in the late 90s, when Netscape 3.0 was the standard browser (wow, imagine that).  Since IFRAME didn&apos;t exist, I would use 2 Frames where the rows were specified 100%,* in the FRAMESET definition.  With no borders on the Frameset, it was effectively an invisible frame.&lt;br&gt;
&lt;br&gt;
Now, with AJAX, I bypass the IFRAME, and fill up the DIV with the content.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.34031-531135</guid>
		<pubDate>Thu, 09 Mar 2006 15:30:11 -0800</pubDate>
		<dc:creator>thanotopsis</dc:creator>
	</item>
	</channel>
</rss>
