<?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: Javascript: Print a single element</title>
	<atom:link href="http://www.barryvan.com.au/2010/02/javascript-print-a-single-element/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barryvan.com.au/2010/02/javascript-print-a-single-element/</link>
	<description>Music, Programming, Design</description>
	<lastBuildDate>Sat, 04 Feb 2012 10:19:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Barry van Oudtshoorn</title>
		<link>http://www.barryvan.com.au/2010/02/javascript-print-a-single-element/comment-page-1/#comment-1285</link>
		<dc:creator>Barry van Oudtshoorn</dc:creator>
		<pubDate>Mon, 05 Sep 2011 00:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.barryvan.com.au/?p=434#comment-1285</guid>
		<description>Hi Niki!

Hmm... This code has suffered from bitrot. :) I think I was using MooTools 1.2 at the time, which automatically MooTools-ified the iframe. I&#039;ve updated the code in the post so that it now works correctly. Plus, it supports styles and is a little bit more robust. Let me know if this works for you!</description>
		<content:encoded><![CDATA[<p>Hi Niki!</p>
<p>Hmm&#8230; This code has suffered from bitrot. <img src='http://www.barryvan.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I think I was using MooTools 1.2 at the time, which automatically MooTools-ified the iframe. I&#8217;ve updated the code in the post so that it now works correctly. Plus, it supports styles and is a little bit more robust. Let me know if this works for you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niki</title>
		<link>http://www.barryvan.com.au/2010/02/javascript-print-a-single-element/comment-page-1/#comment-1284</link>
		<dc:creator>Niki</dc:creator>
		<pubDate>Sun, 04 Sep 2011 11:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.barryvan.com.au/?p=434#comment-1284</guid>
		<description>Hi Barry!
I really like your code here, but it doesn&#039;t work for me. It seems like there is a problem with line 19:
Object [object HTMLBodyElement] has no method &#039;adopt&#039;
Which version of Mootools are you using? 

And i have one little question: Is it possible to clone the  stuff into the Iframe?

Anyway, great script!

Niklas</description>
		<content:encoded><![CDATA[<p>Hi Barry!<br />
I really like your code here, but it doesn&#8217;t work for me. It seems like there is a problem with line 19:<br />
Object [object HTMLBodyElement] has no method &#8216;adopt&#8217;<br />
Which version of Mootools are you using? </p>
<p>And i have one little question: Is it possible to clone the  stuff into the Iframe?</p>
<p>Anyway, great script!</p>
<p>Niklas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry van Oudtshoorn</title>
		<link>http://www.barryvan.com.au/2010/02/javascript-print-a-single-element/comment-page-1/#comment-1189</link>
		<dc:creator>Barry van Oudtshoorn</dc:creator>
		<pubDate>Thu, 18 Feb 2010 09:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.barryvan.com.au/?p=434#comment-1189</guid>
		<description>Hi Nick,

Focussing the iframe and then printing it *should* happen consecutively and nearly instantaneously. I suppose that it&#039;s possible (although highly unlikely) that the user could transfer focus to something else between the two operations... Unfortunately, there&#039;s no way to make the two operations atomic.

The iframe will be invisible by virtue of the fact that it&#039;s 9999px to the left of the viewport. :)</description>
		<content:encoded><![CDATA[<p>Hi Nick,</p>
<p>Focussing the iframe and then printing it *should* happen consecutively and nearly instantaneously. I suppose that it&#8217;s possible (although highly unlikely) that the user could transfer focus to something else between the two operations&#8230; Unfortunately, there&#8217;s no way to make the two operations atomic.</p>
<p>The iframe will be invisible by virtue of the fact that it&#8217;s 9999px to the left of the viewport. <img src='http://www.barryvan.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://www.barryvan.com.au/2010/02/javascript-print-a-single-element/comment-page-1/#comment-1188</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Wed, 17 Feb 2010 10:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.barryvan.com.au/?p=434#comment-1188</guid>
		<description>nice! A question about ie needing the div to be focussed... Is it possible for the focus to be lost before the printing starts? Is there a mechanism to prevent focus stealing? Also, can one set the visibility on the iframe to make it invisible (yes, 1x1 is small, but still...) - or could one apply a z-index to make it appear.

Just thinking aloud here - these are tiny niggles. :-)</description>
		<content:encoded><![CDATA[<p>nice! A question about ie needing the div to be focussed&#8230; Is it possible for the focus to be lost before the printing starts? Is there a mechanism to prevent focus stealing? Also, can one set the visibility on the iframe to make it invisible (yes, 1&#215;1 is small, but still&#8230;) &#8211; or could one apply a z-index to make it appear.</p>
<p>Just thinking aloud here &#8211; these are tiny niggles. <img src='http://www.barryvan.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

