<?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"
	>
<channel>
	<title>Comments on: Insert in place without document.write</title>
	<atom:link href="http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<pubDate>Fri, 21 Nov 2008 08:15:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Juan Vazquez-Abarca</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-825950</link>
		<dc:creator>Juan Vazquez-Abarca</dc:creator>
		<pubDate>Thu, 13 Nov 2008 21:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-825950</guid>
		<description>James, great stuff....

However i'm wondering using this option how do i call for example a CSS file for that piece of script.

                    Thanks</description>
		<content:encoded><![CDATA[<p>James, great stuff&#8230;.</p>
<p>However i&#8217;m wondering using this option how do i call for example a CSS file for that piece of script.</p>
<p>                    Thanks</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-757513</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 08 Jul 2008 09:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-757513</guid>
		<description>


page content addition


function addHTML (html) {
  if (document.all)
    document.body.insertAdjacentHTML('beforeEnd', html);
  else if (document.createRange) {
    var range = document.createRange();
    range.setStartAfter(document.body.lastChild);
    var docFrag = range.createContextualFragment(html);
    document.body.appendChild(docFrag);
  }
  else if (document.layers) {
    var l = new Layer(window.innerWidth);
    l.document.open();
    l.document.write(html);
    l.document.close();
    l.top = document.height;
    document.height += l.document.height;
    l.visibility = 'show';
  }
}




&#60;input type="button"
       onclick="addHTML('&lt;b&gt;' + new Date() + '');"
       value="add current date"
/&#62;


&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p>
page content addition</p>
<p>function addHTML (html) {<br />
  if (document.all)<br />
    document.body.insertAdjacentHTML(&#8217;beforeEnd&#8217;, html);<br />
  else if (document.createRange) {<br />
    var range = document.createRange();<br />
    range.setStartAfter(document.body.lastChild);<br />
    var docFrag = range.createContextualFragment(html);<br />
    document.body.appendChild(docFrag);<br />
  }<br />
  else if (document.layers) {<br />
    var l = new Layer(window.innerWidth);<br />
    l.document.open();<br />
    l.document.write(html);<br />
    l.document.close();<br />
    l.top = document.height;<br />
    document.height += l.document.height;<br />
    l.visibility = &#8217;show&#8217;;<br />
  }<br />
}</p>
<p>&lt;input type=&#8221;button&#8221;<br />
       onclick=&#8221;addHTML(&#8217;<b>&#8216; + new Date() + &#8221;);&#8221;<br />
       value=&#8221;add current date&#8221;<br />
/&gt;</b></p>
<p></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Forexman</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-732372</link>
		<dc:creator>Forexman</dc:creator>
		<pubDate>Sun, 25 May 2008 09:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-732372</guid>
		<description>Hi. This is really interesting post. Thank You! I have just subscribed to Your rss! 
 
Best regards</description>
		<content:encoded><![CDATA[<p>Hi. This is really interesting post. Thank You! I have just subscribed to Your rss! </p>
<p>Best regards</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-636710</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 15 Feb 2008 19:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-636710</guid>
		<description>@above: nodeName.setAttribute('for','text')</description>
		<content:encoded><![CDATA[<p>@above: nodeName.setAttribute(&#8217;for&#8217;,'text&#8217;)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-607993</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 20 Jan 2008 20:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-607993</guid>
		<description>yeah, i have to go figure out how to apply class and for attributes... guessing theres a namespace problem, i hope there is a way around.</description>
		<content:encoded><![CDATA[<p>yeah, i have to go figure out how to apply class and for attributes&#8230; guessing theres a namespace problem, i hope there is a way around.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-313019</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 21 Jul 2007 02:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-313019</guid>
		<description>This is great, but if my text is HTML, it doesn't render. 

How would you apply a css class to the new text?</description>
		<content:encoded><![CDATA[<p>This is great, but if my text is HTML, it doesn&#8217;t render. </p>
<p>How would you apply a css class to the new text?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ara Pehlivanian</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-312356</link>
		<dc:creator>Ara Pehlivanian</dc:creator>
		<pubDate>Fri, 20 Jul 2007 13:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-312356</guid>
		<description>I do it a bit differently because an ID isn't legal in a script tag. Also, when using 3rd party scripts, you get into trouble when they have multiple document.write()s per provider. (http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/)</description>
		<content:encoded><![CDATA[<p>I do it a bit differently because an ID isn&#8217;t legal in a script tag. Also, when using 3rd party scripts, you get into trouble when they have multiple document.write()s per provider. (http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: andrew.k</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-306766</link>
		<dc:creator>andrew.k</dc:creator>
		<pubDate>Mon, 16 Jul 2007 01:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-306766</guid>
		<description>We never had these problems with ASCII. :P

EOF</description>
		<content:encoded><![CDATA[<p>We never had these problems with ASCII. :P</p>
<p>EOF</p>]]></content:encoded>
	</item>
	<item>
		<title>By: brothercake</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-306737</link>
		<dc:creator>brothercake</dc:creator>
		<pubDate>Mon, 16 Jul 2007 00:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-306737</guid>
		<description>XHTML in IE is just HTML4 with extra slashes - sure.

But in decent browsers it's XML. And guess what - it's &lt;em&gt;the same markup&lt;/em&gt;.

XHTML works fine; as a transitional stage from SGML-style markup that's needlessly complex to parse and error-correct, to XML-style markup that's simple and easy to parse; and as the XML itself.</description>
		<content:encoded><![CDATA[<p>XHTML in IE is just HTML4 with extra slashes - sure.</p>
<p>But in decent browsers it&#8217;s XML. And guess what - it&#8217;s <em>the same markup</em>.</p>
<p>XHTML works fine; as a transitional stage from SGML-style markup that&#8217;s needlessly complex to parse and error-correct, to XML-style markup that&#8217;s simple and easy to parse; and as the XML itself.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Etnu</title>
		<link>http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-305709</link>
		<dc:creator>Etnu</dc:creator>
		<pubDate>Sun, 15 Jul 2007 08:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/#comment-305709</guid>
		<description>Better yet -- stop wasting your time with the effectively dead technology that is xhtml. It was an interesting idea, but lets face it -- without IE support, you're going to be serving html4 anyway. HTML5 will be supported before xhtml 1.0 is.</description>
		<content:encoded><![CDATA[<p>Better yet &#8212; stop wasting your time with the effectively dead technology that is xhtml. It was an interesting idea, but lets face it &#8212; without IE support, you&#8217;re going to be serving html4 anyway. HTML5 will be supported before xhtml 1.0 is.</p>]]></content:encoded>
	</item>
</channel>
</rss>
