<?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: Unobtrusive &#8220;Print this window&#8221; using MooTools and jQuery!</title>
	<atom:link href="http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/</link>
	<description>iKeif.net - Web developer, father, and brewer.</description>
	<lastBuildDate>Sat, 05 Jun 2010 04:20:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Receipt Printer</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-373</link>
		<dc:creator>Receipt Printer</dc:creator>
		<pubDate>Fri, 21 Aug 2009 16:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-373</guid>
		<description>&quot;The class name is what’s important – you can make it a &lt;span&gt; if you don’t like using &lt;a rel=&quot;nofollow&quot;&gt; or simply attach it to an image.&quot;&lt;br&gt;I didn&#039;t knew this before well I thought that using an anchor is not really recommended well I have to try this one for my self&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>&#8220;The class name is what’s important – you can make it a &lt;span&gt; if you don’t like using <a rel="nofollow"> or simply attach it to an image.&#8221;<br />I didn&#39;t knew this before well I thought that using an anchor is not really recommended well I have to try this one for my self</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Aylott</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-343</link>
		<dc:creator>Thomas Aylott</dc:creator>
		<pubDate>Wed, 06 May 2009 15:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-343</guid>
		<description>MooTools:&lt;br&gt;&lt;br&gt;&lt;code&gt;$$(&#039;#container .print-window&#039;).addEvent(&#039;click&#039;, function(e){ e.stop(); window.print(); });&lt;/code&gt;&lt;br&gt;&lt;br&gt;jQuery:&lt;br&gt;&lt;br&gt;&lt;code&gt;$(&#039;#container .print-window&#039;).addEvent(&#039;click&#039;, function(e){ e.preventDefault(); window.print(); });&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>MooTools:</p>
<p><code>$$(&#39;#container .print-window&#39;).addEvent(&#39;click&#39;, function(e){ e.stop(); window.print(); });</code></p>
<p>jQuery:</p>
<p><code>$(&#39;#container .print-window&#39;).addEvent(&#39;click&#39;, function(e){ e.preventDefault(); window.print(); });</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-295</link>
		<dc:creator>George</dc:creator>
		<pubDate>Wed, 25 Feb 2009 00:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-295</guid>
		<description>Keith,

For you jQuery code, the only thing you&#039;re really missing is the inevitable &quot;return false;&quot; before closing the function. Also, don&#039;t forget about that wonderful deviation in IE7 for Vista where the global variable returnVal really determines whether or not an action is carried out.

&lt;code&gt;
$(&#039;.print-window&#039;).click(function(){
  window.print();
  returnVal = false;
  return returnVal;
});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Keith,</p>
<p>For you jQuery code, the only thing you&#8217;re really missing is the inevitable &#8220;return false;&#8221; before closing the function. Also, don&#8217;t forget about that wonderful deviation in IE7 for Vista where the global variable returnVal really determines whether or not an action is carried out.</p>
<p><code><br />
$('.print-window').click(function(){<br />
  window.print();<br />
  returnVal = false;<br />
  return returnVal;<br />
});<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdrisser (mdrisser)</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-283</link>
		<dc:creator>mdrisser (mdrisser)</dc:creator>
		<pubDate>Thu, 12 Feb 2009 23:56:40 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-283</guid>
		<description>RT &lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/briancray&quot;&gt;@briancray&lt;/a&gt;: Unobtrusive “Print this window” using MooTools and jQuery! http://tinyurl.com/cr3op9</description>
		<content:encoded><![CDATA[<p>RT <a rel="nofollow" href="http://twitter.com/briancray">@briancray</a>: Unobtrusive “Print this window” using MooTools and jQuery! <a href="http://tinyurl.com/cr3op9" rel="nofollow">http://tinyurl.com/cr3op9</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrrichardson (Matt Richardson)</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-281</link>
		<dc:creator>mrrichardson (Matt Richardson)</dc:creator>
		<pubDate>Thu, 12 Feb 2009 23:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-281</guid>
		<description>RT &lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/briancray&quot;&gt;@briancray&lt;/a&gt;: Unobtrusive “Print this window” using MooTools and jQuery! http://tinyurl.com/cr3op9</description>
		<content:encoded><![CDATA[<p>RT <a rel="nofollow" href="http://twitter.com/briancray">@briancray</a>: Unobtrusive “Print this window” using MooTools and jQuery! <a href="http://tinyurl.com/cr3op9" rel="nofollow">http://tinyurl.com/cr3op9</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pliggs (Pliggs)</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-282</link>
		<dc:creator>Pliggs (Pliggs)</dc:creator>
		<pubDate>Thu, 12 Feb 2009 23:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-282</guid>
		<description>RT &lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/briancray&quot;&gt;@briancray&lt;/a&gt;: Unobtrusive “Print this window” using MooTools and jQuery! http://tinyurl.com/cr3op9 I love jQuery</description>
		<content:encoded><![CDATA[<p>RT <a rel="nofollow" href="http://twitter.com/briancray">@briancray</a>: Unobtrusive “Print this window” using MooTools and jQuery! <a href="http://tinyurl.com/cr3op9" rel="nofollow">http://tinyurl.com/cr3op9</a> I love jQuery</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: briancray (Brian Cray)</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-280</link>
		<dc:creator>briancray (Brian Cray)</dc:creator>
		<pubDate>Thu, 12 Feb 2009 23:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-280</guid>
		<description>Unobtrusive “Print this window” using MooTools and jQuery! http://tinyurl.com/cr3op9</description>
		<content:encoded><![CDATA[<p>Unobtrusive “Print this window” using MooTools and jQuery! <a href="http://tinyurl.com/cr3op9" rel="nofollow">http://tinyurl.com/cr3op9</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keif</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-287</link>
		<dc:creator>keif</dc:creator>
		<pubDate>Thu, 12 Feb 2009 20:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-287</guid>
		<description>@Oskar: Thanks again! Regardless of something &quot;feeling&quot; common knowledge, it&#039;s always great to hear it said again (especially to the benefit of everyone)!</description>
		<content:encoded><![CDATA[<p>@Oskar: Thanks again! Regardless of something &#8220;feeling&#8221; common knowledge, it&#8217;s always great to hear it said again (especially to the benefit of everyone)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oskar Krawczyk</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-286</link>
		<dc:creator>Oskar Krawczyk</dc:creator>
		<pubDate>Thu, 12 Feb 2009 19:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-286</guid>
		<description>Breaking arrays in most cases is a very good thing to do, say, if one wants to apply two (or more) methods:

&lt;code&gt;
Array.each(function(el) {
  el.addEvent(...);
  el.set(...);
  el.store(...);
});
&lt;/code&gt;

This code loops through the Array only once, where doing a simplified-statement on the same Array will constitute in executing three loops– one for each method.

I&#039;m sure you know that, but perhaps some of the readers don&#039;t!</description>
		<content:encoded><![CDATA[<p>Breaking arrays in most cases is a very good thing to do, say, if one wants to apply two (or more) methods:</p>
<p><code><br />
Array.each(function(el) {<br />
  el.addEvent(...);<br />
  el.set(...);<br />
  el.store(...);<br />
});<br />
</code></p>
<p>This code loops through the Array only once, where doing a simplified-statement on the same Array will constitute in executing three loops– one for each method.</p>
<p>I&#8217;m sure you know that, but perhaps some of the readers don&#8217;t!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keif</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-285</link>
		<dc:creator>keif</dc:creator>
		<pubDate>Thu, 12 Feb 2009 19:29:48 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-285</guid>
		<description>I break the array out of force of habit - thanks for the clean-up!</description>
		<content:encoded><![CDATA[<p>I break the array out of force of habit &#8211; thanks for the clean-up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oskar Krawczyk</title>
		<link>http://ikeif.net/2009/02/03/unobtrusive-print-window-mootools-jquery/comment-page-1/#comment-284</link>
		<dc:creator>Oskar Krawczyk</dc:creator>
		<pubDate>Thu, 12 Feb 2009 19:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://ikeif.net/?p=385#comment-284</guid>
		<description>Actually you can simplify the MooTools code:

&lt;code&gt;
$$(&#039;.print-window&#039;).addEvent(&#039;click&#039;, function(e) {
	e.stop();
	window.print();
});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Actually you can simplify the MooTools code:</p>
<p><code><br />
$$('.print-window').addEvent('click', function(e) {<br />
	e.stop();<br />
	window.print();<br />
});<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

