<?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 for Tom&#039;s Blog</title>
	<atom:link href="http://www.encapsulated.org/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.encapsulated.org/blog</link>
	<description>An analog guy in a digital world</description>
	<lastBuildDate>Wed, 18 Aug 2010 19:35:56 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Building your own Javascript library (part 1) by Building your own Javascript library (part 2)</title>
		<link>http://www.encapsulated.org/blog/2009/11/30/building-your-own-javascript-library-part-1/comment-page-1/#comment-3407</link>
		<dc:creator>Building your own Javascript library (part 2)</dc:creator>
		<pubDate>Wed, 18 Aug 2010 19:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=89#comment-3407</guid>
		<description>[...] my previous blog post, there were some extra&#8217;s there: settings and an init method. I won&#8217;t be needing those [...]</description>
		<content:encoded><![CDATA[<p>[...] my previous blog post, there were some extra&#8217;s there: settings and an init method. I won&#8217;t be needing those [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building your own Javascript library (part 1) by Building your own Javascript library (part 3)</title>
		<link>http://www.encapsulated.org/blog/2009/11/30/building-your-own-javascript-library-part-1/comment-page-1/#comment-3406</link>
		<dc:creator>Building your own Javascript library (part 3)</dc:creator>
		<pubDate>Wed, 18 Aug 2010 19:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=89#comment-3406</guid>
		<description>[...] going to start with some amends to the functionality I have already created in the first part of the series. Don&#8217;t know if you remember, but there I created functionality that is copied [...]</description>
		<content:encoded><![CDATA[<p>[...] going to start with some amends to the functionality I have already created in the first part of the series. Don&#8217;t know if you remember, but there I created functionality that is copied [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building your own Javascript library (part 1) by Tom</title>
		<link>http://www.encapsulated.org/blog/2009/11/30/building-your-own-javascript-library-part-1/comment-page-1/#comment-3019</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 13 Jul 2010 09:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=89#comment-3019</guid>
		<description>Hi Nizzy,

You could try to add the onError event handler to the Tag object. More info can be found here: http://api.jquery.com/error/
If that isn&#039;t enough, you can also look to place try/catch statements where appropriate (haven&#039;t really looked into that yet, so I don&#039;t have a recommendation where to put those)

Tom</description>
		<content:encoded><![CDATA[<p>Hi Nizzy,</p>
<p>You could try to add the onError event handler to the Tag object. More info can be found here: <a href="http://api.jquery.com/error/" rel="nofollow">http://api.jquery.com/error/</a><br />
If that isn&#8217;t enough, you can also look to place try/catch statements where appropriate (haven&#8217;t really looked into that yet, so I don&#8217;t have a recommendation where to put those)</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building your own Javascript library (part 1) by Nizzy</title>
		<link>http://www.encapsulated.org/blog/2009/11/30/building-your-own-javascript-library-part-1/comment-page-1/#comment-2970</link>
		<dc:creator>Nizzy</dc:creator>
		<pubDate>Thu, 08 Jul 2010 01:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=89#comment-2970</guid>
		<description>Tom, thanks for sharing your work.

I was wondering how you could implement a debug pattern that allows me to catch any errors from plugins within Tag obj.

Best
Nizzy</description>
		<content:encoded><![CDATA[<p>Tom, thanks for sharing your work.</p>
<p>I was wondering how you could implement a debug pattern that allows me to catch any errors from plugins within Tag obj.</p>
<p>Best<br />
Nizzy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to let DomPDF and Zend Framework play along by nomad</title>
		<link>http://www.encapsulated.org/blog/2009/08/27/how-to-let-dompdf-and-zend-framework-play-along/comment-page-1/#comment-2226</link>
		<dc:creator>nomad</dc:creator>
		<pubDate>Mon, 05 Apr 2010 07:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=77#comment-2226</guid>
		<description>I&#039;ve been trying your approach that you have suggested to Peter but i can&#039;t seems to get it working. 

function viewAction() {

layout = new Zend_Layout();
$layout-&gt;setLayoutPath(APPLICATION_PATH . &quot;/views/scripts/invoice&quot;);				
$this-&gt;view-&gt;foo = &quot;test data&quot;;
$this-&gt;render(); /* i can render my view.phtml */

$layout-&gt;content = $output;
$layout-&gt;setLayout(&#039;pdf&#039;); 
echo &quot;&lt;pre&gt;&quot;;
print_r($layout);
$html = $layout-&gt;render();

}
When i render the layout it show following error:
Message: Requested HTML document contains no data. 

following is my pdf.phtml code

$dompdf = new DOMPDF();
$dompdf-&gt;set_paper(&quot;a4&quot;,&quot;portrait&quot;);
$dompdf-&gt;load_html($html);
$dompdf-&gt;set_base_path($_SERVER[&#039;DOCUMENT_ROOT&#039;]);
$dompdf-&gt;render();
$dompdf-&gt;stream(&quot;document.pdf&quot;);</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying your approach that you have suggested to Peter but i can&#8217;t seems to get it working. </p>
<p>function viewAction() {</p>
<p>layout = new Zend_Layout();<br />
$layout-&gt;setLayoutPath(APPLICATION_PATH . &#8220;/views/scripts/invoice&#8221;);<br />
$this-&gt;view-&gt;foo = &#8220;test data&#8221;;<br />
$this-&gt;render(); /* i can render my view.phtml */</p>
<p>$layout-&gt;content = $output;<br />
$layout-&gt;setLayout(&#8216;pdf&#8217;);<br />
echo &#8220;
<pre>";
print_r($layout);
$html = $layout-&gt;render();

}
When i render the layout it show following error:
Message: Requested HTML document contains no data. 

following is my pdf.phtml code

$dompdf = new DOMPDF();
$dompdf-&gt;set_paper("a4","portrait");
$dompdf-&gt;load_html($html);
$dompdf-&gt;set_base_path($_SERVER['DOCUMENT_ROOT']);
$dompdf-&gt;render();
$dompdf-&gt;stream("document.pdf");</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to let DomPDF and Zend Framework play along by Marcel van Veelen</title>
		<link>http://www.encapsulated.org/blog/2009/08/27/how-to-let-dompdf-and-zend-framework-play-along/comment-page-1/#comment-2075</link>
		<dc:creator>Marcel van Veelen</dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=77#comment-2075</guid>
		<description>Great!

Works fine.</description>
		<content:encoded><![CDATA[<p>Great!</p>
<p>Works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security with Zend_AMF and Flex &#8211; Part 2: Practise by Titi</title>
		<link>http://www.encapsulated.org/blog/2009/04/15/security-with-zend_amf-and-flex-part-2-practise/comment-page-1/#comment-1973</link>
		<dc:creator>Titi</dc:creator>
		<pubDate>Wed, 24 Feb 2010 16:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=31#comment-1973</guid>
		<description>Hi Tom
I know that this blog entry is a little bit old but it&#039;s very helpful to me. Do you know if your colleague would agree to show me his flex code ? Because it&#039;s the hardest part for me in the authentication process with zend_amf...

Thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi Tom<br />
I know that this blog entry is a little bit old but it&#8217;s very helpful to me. Do you know if your colleague would agree to show me his flex code ? Because it&#8217;s the hardest part for me in the authentication process with zend_amf&#8230;</p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to let DomPDF and Zend Framework play along by Michael D</title>
		<link>http://www.encapsulated.org/blog/2009/08/27/how-to-let-dompdf-and-zend-framework-play-along/comment-page-1/#comment-1784</link>
		<dc:creator>Michael D</dc:creator>
		<pubDate>Sat, 23 Jan 2010 01:31:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=77#comment-1784</guid>
		<description>&lt;a href=&quot;#comment-1778&quot; rel=&quot;nofollow&quot;&gt;@Tom&lt;/a&gt; 
 Here is the html that is added to the file before the pdf header. 
----------
&lt;b&gt;Warning&lt;/b&gt;:  file_put_contents(/var/www/vmnc/library/dompdf/lib/fonts/php_Times-Roman.afm) [&lt;a href=&#039;function.file-put-contents&#039; rel=&quot;nofollow&quot;&gt;function.file-put-contents&lt;/a&gt;]: failed to open stream: Permission denied in &lt;b&gt;/var/www/vmnc/library/dompdf/lib/class.pdf.php&lt;/b&gt; on line &lt;b&gt;2354&lt;/b&gt;

-------------
Im not sure what that means but is enough to corrupt the file so it wont be rendered by some pdf viewers. 

Thanks I appreciate your help.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1778" rel="nofollow">@Tom</a><br />
 Here is the html that is added to the file before the pdf header.<br />
&#8212;&#8212;&#8212;-<br />
<b>Warning</b>:  file_put_contents(/var/www/vmnc/library/dompdf/lib/fonts/php_Times-Roman.afm) [<a href='function.file-put-contents' rel="nofollow">function.file-put-contents</a>]: failed to open stream: Permission denied in <b>/var/www/vmnc/library/dompdf/lib/class.pdf.php</b> on line <b>2354</b></p>
<p>&#8212;&#8212;&#8212;&#8212;-<br />
Im not sure what that means but is enough to corrupt the file so it wont be rendered by some pdf viewers. </p>
<p>Thanks I appreciate your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unit testing your Javascript: Just Do It by Tom</title>
		<link>http://www.encapsulated.org/blog/2009/12/15/unit-testing-your-javascript-just-do-it/comment-page-1/#comment-1782</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=99#comment-1782</guid>
		<description>Very interesting approach. I&#039;ll have to read the post again, because after a first quick read, I didn&#039;t fully understand how the concept works.

Thanks!</description>
		<content:encoded><![CDATA[<p>Very interesting approach. I&#8217;ll have to read the post again, because after a first quick read, I didn&#8217;t fully understand how the concept works.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unit testing your Javascript: Just Do It by Josh Ribakoff</title>
		<link>http://www.encapsulated.org/blog/2009/12/15/unit-testing-your-javascript-just-do-it/comment-page-1/#comment-1781</link>
		<dc:creator>Josh Ribakoff</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=99#comment-1781</guid>
		<description>I just started using Qunit. I was searching for an article I read the other day and came across yours. The set timeout thing is cool, but not when you have a lot of tests and the time outs add up.

Check out this post for a better way to test asynchronous code

http://www.onenaught.com/posts/85/turn-your-jquery-code-into-a-richer-unit-testable-plugin</description>
		<content:encoded><![CDATA[<p>I just started using Qunit. I was searching for an article I read the other day and came across yours. The set timeout thing is cool, but not when you have a lot of tests and the time outs add up.</p>
<p>Check out this post for a better way to test asynchronous code</p>
<p><a href="http://www.onenaught.com/posts/85/turn-your-jquery-code-into-a-richer-unit-testable-plugin" rel="nofollow">http://www.onenaught.com/posts/85/turn-your-jquery-code-into-a-richer-unit-testable-plugin</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
