<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: HTML includes</title> <atom:link href="http://friendlybit.com/html/html-includes/feed/" rel="self" type="application/rss+xml" /><link>http://friendlybit.com/html/html-includes/</link> <description>You have found Friendly Bit, a web development blog. I focus on client side technologies like CSS, HTML and Javascript. You find my articles below and categories to the right.</description> <lastBuildDate>Fri, 12 Mar 2010 22:50:44 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Jegan</title><link>http://friendlybit.com/html/html-includes/#comment-33306</link> <dc:creator>Jegan</dc:creator> <pubDate>Mon, 30 Nov 2009 08:03:56 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-33306</guid> <description>Thanks for the code which works in all the Browser.</description> <content:encoded><![CDATA[<p>Thanks for the code which works in all the Browser.</p> ]]></content:encoded> </item> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/html/html-includes/#comment-31450</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Fri, 13 Feb 2009 15:59:49 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31450</guid> <description>@Mikael Lundin: Thanks for the explaination!</description> <content:encoded><![CDATA[<p>@Mikael Lundin: Thanks for the explaination!</p> ]]></content:encoded> </item> <item><title>By: Mikael Lundin</title><link>http://friendlybit.com/html/html-includes/#comment-31445</link> <dc:creator>Mikael Lundin</dc:creator> <pubDate>Sun, 08 Feb 2009 08:24:44 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31445</guid> <description>The difference is that XInclude would need a pre-parse before the DOM is loaded, and that  is an element in the DOM. XInclude is transparent to JavaScript. IFrame is not.XInclude is not intended to be used in HTML, but rather in XML and I actually found it useful when dealing with XML on the server side, and one time including data into a NAnt script :)If the browser supports XHtml I can&#039;t see why it should not also support XInclude since it comes from the same family. There seems to be some support in IE7, and I guess thats because of the XSL-support in that browser.Well, that&#039;s my two cents anyway.</description> <content:encoded><![CDATA[<p>The difference is that XInclude would need a pre-parse before the DOM is loaded, and that  is an element in the DOM. XInclude is transparent to JavaScript. IFrame is not.</p><p>XInclude is not intended to be used in HTML, but rather in XML and I actually found it useful when dealing with XML on the server side, and one time including data into a NAnt script :)</p><p>If the browser supports XHtml I can&#8217;t see why it should not also support XInclude since it comes from the same family. There seems to be some support in IE7, and I guess thats because of the XSL-support in that browser.</p><p>Well, that&#8217;s my two cents anyway.</p> ]]></content:encoded> </item> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/html/html-includes/#comment-31444</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Sat, 07 Feb 2009 14:32:47 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31444</guid> <description>@Mikael Lundin: I&#039;ve never seen that one, which probably is one of the explainations for why it isn&#039;t supported: People don&#039;t know about it. I&#039;m hoping for the most probable solution that will do what I listed in the article: and to me, that&#039;s HTML5.</description> <content:encoded><![CDATA[<p>@Mikael Lundin: I&#8217;ve never seen that one, which probably is one of the explainations for why it isn&#8217;t supported: People don&#8217;t know about it. I&#8217;m hoping for the most probable solution that will do what I listed in the article: and to me, that&#8217;s HTML5.</p> ]]></content:encoded> </item> <item><title>By: Mikael Lundin</title><link>http://friendlybit.com/html/html-includes/#comment-31443</link> <dc:creator>Mikael Lundin</dc:creator> <pubDate>Sat, 07 Feb 2009 11:48:41 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31443</guid> <description>What about &lt;a href=&quot;http://en.wikipedia.org/wiki/XInclude&quot; rel=&quot;nofollow&quot;&gt;XInclude&lt;/a&gt;? Is there any valid reason for the bad browser support of this technique?</description> <content:encoded><![CDATA[<p>What about <a
href="http://en.wikipedia.org/wiki/XInclude" rel="nofollow">XInclude</a>? Is there any valid reason for the bad browser support of this technique?</p> ]]></content:encoded> </item> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/html/html-includes/#comment-31367</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Sun, 11 Jan 2009 18:32:38 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31367</guid> <description>@Rob: Search engines would have to update their algorithms, just like browsers would. Nothing says that Google can&#039;t make two requests to a website instead of one. (Minor note: please don&#039;t use your company name as the name, that&#039;s spamming).</description> <content:encoded><![CDATA[<p>@Rob: Search engines would have to update their algorithms, just like browsers would. Nothing says that Google can&#8217;t make two requests to a website instead of one. (Minor note: please don&#8217;t use your company name as the name, that&#8217;s spamming).</p> ]]></content:encoded> </item> <item><title>By: Rob</title><link>http://friendlybit.com/html/html-includes/#comment-31365</link> <dc:creator>Rob</dc:creator> <pubDate>Sun, 11 Jan 2009 14:23:20 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31365</guid> <description>Yes an object would allow you to include pages within HTML pages, however this has serious implications for search engines. Content within objects, frames and iframes might look right in a browser window, but search engines will not be able to view and parse your content.Using PHP or ASP only requires one additional line of code to include another page such as a header or footer. You don&#039;t have to master an entire programming language at all.</description> <content:encoded><![CDATA[<p>Yes an object would allow you to include pages within HTML pages, however this has serious implications for search engines. Content within objects, frames and iframes might look right in a browser window, but search engines will not be able to view and parse your content.</p><p>Using PHP or ASP only requires one additional line of code to include another page such as a header or footer. You don&#8217;t have to master an entire programming language at all.</p> ]]></content:encoded> </item> <item><title>By: Stevie D</title><link>http://friendlybit.com/html/html-includes/#comment-31323</link> <dc:creator>Stevie D</dc:creator> <pubDate>Mon, 15 Dec 2008 12:56:41 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31323</guid> <description>What I used was
&lt;code&gt;[p][object data=&quot;sourcefile.htm&quot; type=&quot;text/html&quot; height=&quot;...&quot; width=&quot;...&quot;][a href=&quot;sourcefile.htm&quot;]Link to source file[/a] for browsers that don&#039;t support object element[/object][/p]&lt;/code&gt;.It definitely worked in IE5.5 and IE6, although it looked ugly as heck.I&#039;m surprised you and Alon are talking about how it messes up Google. I had always understood that the page was served whole - the browsing agent wouldn&#039;t be aware that some of the code was sent by SSI include. Google would just see the final page, as your browser would, with the included code, erm, included with all the rest of the code.Why do I think it works better to use SSI?* Neatness - because SSI drops a page fragment into the document flow, you can style it seamlessly with the rest of the page. Object elements have to have the size specified, which often results in scrollbars and ugly borders.* Capability - SSI allows you to insert any document fragment, it doesn&#039;t have to be a stand-alone object or set of elements, it could end mid-element if that serves your needs better! Object elements don&#039;t give you that flexibility.* Search resilient - because the included fragment is only ever served as part of the parent page, search engines treat it as though it was part of that page. With object elements, you have the risk that spiders won&#039;t read or index pages/fragments linked through the object element, won&#039;t treat them as part of the main page (for ranking and context purposes), and will return them as results in their own right, which means that surfers can be directed to a fragment page that probably doesn&#039;t answer their question and may not work as a self-contained page.* Accessibility - because SSI is all done server-side, all the user agent sees is the completed page, so if your coding is up to scratch, it&#039;s accessible straight away. Object elements are not supported by all user agents - some old browsers and, I suspect, mobile phones and assistive technologies, don&#039;t read object elements, so you have to include alternative content and remember to change it as needed, which is a headache to maintain, and adds to the bytes transferred. There is also the worry that, even if the user agent does render the object elements, features such as tabbing to links and fields may not work as intended or in the correct order.From reading the [iframe seamless] bit on HTML5, it sounds like they are just reinventing what we&#039;ve already got with SSI, but relying on user agents to treat the included content in the manner specified (do we really want to do that?), whereas with SSI it is guaranteed. The only advantage I can see to using any form of [object] or [iframe] element is to allow cacheing of the included file, but is that really all that important these days?</description> <content:encoded><![CDATA[<p>What I used was<br
/> <code>[p][object data="sourcefile.htm" type="text/html" height="..." width="..."][a href="sourcefile.htm"]Link to source file[/a] for browsers that don't support object element[/object][/p]</code>.</p><p>It definitely worked in IE5.5 and IE6, although it looked ugly as heck.</p><p>I&#8217;m surprised you and Alon are talking about how it messes up Google. I had always understood that the page was served whole &#8211; the browsing agent wouldn&#8217;t be aware that some of the code was sent by SSI include. Google would just see the final page, as your browser would, with the included code, erm, included with all the rest of the code.</p><p>Why do I think it works better to use SSI?</p><p>* Neatness &#8211; because SSI drops a page fragment into the document flow, you can style it seamlessly with the rest of the page. Object elements have to have the size specified, which often results in scrollbars and ugly borders.</p><p>* Capability &#8211; SSI allows you to insert any document fragment, it doesn&#8217;t have to be a stand-alone object or set of elements, it could end mid-element if that serves your needs better! Object elements don&#8217;t give you that flexibility.</p><p>* Search resilient &#8211; because the included fragment is only ever served as part of the parent page, search engines treat it as though it was part of that page. With object elements, you have the risk that spiders won&#8217;t read or index pages/fragments linked through the object element, won&#8217;t treat them as part of the main page (for ranking and context purposes), and will return them as results in their own right, which means that surfers can be directed to a fragment page that probably doesn&#8217;t answer their question and may not work as a self-contained page.</p><p>* Accessibility &#8211; because SSI is all done server-side, all the user agent sees is the completed page, so if your coding is up to scratch, it&#8217;s accessible straight away. Object elements are not supported by all user agents &#8211; some old browsers and, I suspect, mobile phones and assistive technologies, don&#8217;t read object elements, so you have to include alternative content and remember to change it as needed, which is a headache to maintain, and adds to the bytes transferred. There is also the worry that, even if the user agent does render the object elements, features such as tabbing to links and fields may not work as intended or in the correct order.</p><p>From reading the [iframe seamless] bit on HTML5, it sounds like they are just reinventing what we&#8217;ve already got with SSI, but relying on user agents to treat the included content in the manner specified (do we really want to do that?), whereas with SSI it is guaranteed. The only advantage I can see to using any form of [object] or [iframe] element is to allow cacheing of the included file, but is that really all that important these days?</p> ]]></content:encoded> </item> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/html/html-includes/#comment-31306</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Wed, 10 Dec 2008 20:26:56 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31306</guid> <description>@Stevie D: You don&#039;t happen to know exactly what you did to make it work in IE? I&#039;d love to see an example.&quot;Everything else works better&quot;: I don&#039;t agree with that (especially not neatness), and I&#039;ve given my arguments &quot;pro seemless&quot; in the article.</description> <content:encoded><![CDATA[<p>@Stevie D: You don&#8217;t happen to know exactly what you did to make it work in IE? I&#8217;d love to see an example.</p><p>&#8220;Everything else works better&#8221;: I don&#8217;t agree with that (especially not neatness), and I&#8217;ve given my arguments &#8220;pro seemless&#8221; in the article.</p> ]]></content:encoded> </item> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/html/html-includes/#comment-31305</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Wed, 10 Dec 2008 19:50:00 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31305</guid> <description>@Alon Peer: Agreed, search engines really need to understand this before people will start to use it widely.But even without that it could be immensely useful for prototyping things, or why not an intranet? Things that won&#039;t necessarily need to be crawled.</description> <content:encoded><![CDATA[<p>@Alon Peer: Agreed, search engines really need to understand this before people will start to use it widely.</p><p>But even without that it could be immensely useful for prototyping things, or why not an intranet? Things that won&#8217;t necessarily need to be crawled.</p> ]]></content:encoded> </item> <item><title>By: Alon Peer</title><link>http://friendlybit.com/html/html-includes/#comment-31300</link> <dc:creator>Alon Peer</dc:creator> <pubDate>Tue, 09 Dec 2008 21:52:46 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31300</guid> <description>One more issue that you have to think about before using this is SEO.
A search engine&#039;s crawler needs to &quot;know&quot; that it needs to look into the HTML include file and count the text in it as part of the original page and not as a different one. Otherwise your website&#039;s pages might not be indexed correctly (i.e. if you have all of your main menu links inside such an include).
Search Engines (well, Google...) must first learn to deal with these includes before I will start using them. Until then it&#039;s PHP includes only.</description> <content:encoded><![CDATA[<p>One more issue that you have to think about before using this is SEO.<br
/> A search engine&#8217;s crawler needs to &#8220;know&#8221; that it needs to look into the HTML include file and count the text in it as part of the original page and not as a different one. Otherwise your website&#8217;s pages might not be indexed correctly (i.e. if you have all of your main menu links inside such an include).<br
/> Search Engines (well, Google&#8230;) must first learn to deal with these includes before I will start using them. Until then it&#8217;s PHP includes only.</p> ]]></content:encoded> </item> <item><title>By: Stevie D</title><link>http://friendlybit.com/html/html-includes/#comment-31277</link> <dc:creator>Stevie D</dc:creator> <pubDate>Mon, 08 Dec 2008 12:46:07 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31277</guid> <description>I&#039;m surprised it doesn&#039;t work in IE - I &lt;em&gt;used&lt;/em&gt; to use [object] elements in my website (although not wrapped in a [figure] element), and that certainly worked in IE5 and IE6. It didn&#039;t look pretty, but it worked - up to a point.I stopped using [object] when I got my head round SSI, which is a much more effective way of achieving the end result. OK, so it doesn&#039;t allow cacheing, but everything else works better - it looks neater, fewer HTTP requests, fewer bytes if the user only looks at one page, easier to maintain, and solves the problem of search engines calling up the object data page as a stand-alone.</description> <content:encoded><![CDATA[<p>I&#8217;m surprised it doesn&#8217;t work in IE &#8211; I <em>used</em> to use [object] elements in my website (although not wrapped in a [figure] element), and that certainly worked in IE5 and IE6. It didn&#8217;t look pretty, but it worked &#8211; up to a point.</p><p>I stopped using [object] when I got my head round SSI, which is a much more effective way of achieving the end result. OK, so it doesn&#8217;t allow cacheing, but everything else works better &#8211; it looks neater, fewer HTTP requests, fewer bytes if the user only looks at one page, easier to maintain, and solves the problem of search engines calling up the object data page as a stand-alone.</p> ]]></content:encoded> </item> <item><title>By: Emil Stenström</title><link>http://friendlybit.com/html/html-includes/#comment-31247</link> <dc:creator>Emil Stenström</dc:creator> <pubDate>Tue, 02 Dec 2008 23:37:07 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31247</guid> <description>@zcorpan: Thanks, &lt;a href=&quot;http://www.w3.org/TR/html5/embedded0.html#seamless&quot; rel=&quot;nofollow&quot;&gt;iframe seemless&lt;/a&gt; does exactly what I&#039;m looking for. Hoping to see the first implementation soon! I&#039;ve updated the post.</description> <content:encoded><![CDATA[<p>@zcorpan: Thanks, <a
href="http://www.w3.org/TR/html5/embedded0.html#seamless">iframe seemless</a> does exactly what I&#8217;m looking for. Hoping to see the first implementation soon! I&#8217;ve updated the post.</p> ]]></content:encoded> </item> <item><title>By: zcorpan</title><link>http://friendlybit.com/html/html-includes/#comment-31245</link> <dc:creator>zcorpan</dc:creator> <pubDate>Tue, 02 Dec 2008 07:46:50 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31245</guid> <description>You should check out the &lt;iframe seamless&gt; feature and its friends in HTML5.</description> <content:encoded><![CDATA[<p>You should check out the &lt;iframe seamless&gt; feature and its friends in HTML5.</p> ]]></content:encoded> </item> <item><title>By: Anders Ytterström</title><link>http://friendlybit.com/html/html-includes/#comment-31241</link> <dc:creator>Anders Ytterström</dc:creator> <pubDate>Sun, 30 Nov 2008 21:33:17 +0000</pubDate> <guid
isPermaLink="false">http://friendlybit.com/?p=320#comment-31241</guid> <description>It would be awesome! It would be a killer argument for not using  frames and iframes isntead of learning template languages.No decent web developer writes HTML without includes or variables anyway, so to make it a part of the spec only seems reasonable to me.</description> <content:encoded><![CDATA[<p>It would be awesome! It would be a killer argument for not using  frames and iframes isntead of learning template languages.</p><p>No decent web developer writes HTML without includes or variables anyway, so to make it a part of the spec only seems reasonable to me.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 18/36 queries in 0.010 seconds using disk

Served from: c8.67.364a.static.theplanet.com @ 2010-03-14 23:44:02 -->