<?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 Edward Yarnold</title>
	<atom:link href="http://www.edwardyarnold.co.uk/blog/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.edwardyarnold.co.uk/blog</link>
	<description>PHP &#38; MySQL Web Developer</description>
	<lastBuildDate>Fri, 23 Sep 2011 18:42:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Working from home: Month 1 by Jonathan Ruiz Peinado</title>
		<link>http://www.edwardyarnold.co.uk/blog/working-from-home-month-1/comment-page-1#comment-2789</link>
		<dc:creator>Jonathan Ruiz Peinado</dc:creator>
		<pubDate>Fri, 23 Sep 2011 18:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=199#comment-2789</guid>
		<description>Nice routine, I&#039;m glad to hear that you are comfortable with it!</description>
		<content:encoded><![CDATA[<p>Nice routine, I&#8217;m glad to hear that you are comfortable with it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Working from home: Month 1 by Tom</title>
		<link>http://www.edwardyarnold.co.uk/blog/working-from-home-month-1/comment-page-1#comment-2586</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 31 Aug 2011 09:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=199#comment-2586</guid>
		<description>The work/play balance is so difficult to strike right when working from home but you&#039;ve got some great tips here to keep the two separate.

I hope your new arrangement works out for you and congrats on the new house!</description>
		<content:encoded><![CDATA[<p>The work/play balance is so difficult to strike right when working from home but you&#8217;ve got some great tips here to keep the two separate.</p>
<p>I hope your new arrangement works out for you and congrats on the new house!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A problem with forms submitting using AJAX: how to resubmit? by Ed Yarnold</title>
		<link>http://www.edwardyarnold.co.uk/blog/ajax-form-problem-resubmissio/comment-page-1#comment-1566</link>
		<dc:creator>Ed Yarnold</dc:creator>
		<pubDate>Wed, 23 Feb 2011 15:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=167#comment-1566</guid>
		<description>Good idea, but if you did that then I think you would need to provide some kind of visual indication of why the second submission didn&#039;t work... would possibly be quicker &amp; easier to disable for that many seconds? ;)</description>
		<content:encoded><![CDATA[<p>Good idea, but if you did that then I think you would need to provide some kind of visual indication of why the second submission didn&#8217;t work&#8230; would possibly be quicker &#038; easier to disable for that many seconds? <img src='http://www.edwardyarnold.co.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A problem with forms submitting using AJAX: how to resubmit? by Tom</title>
		<link>http://www.edwardyarnold.co.uk/blog/ajax-form-problem-resubmissio/comment-page-1#comment-1563</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 23 Feb 2011 10:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=167#comment-1563</guid>
		<description>How about ignoring repeat form submissions posted within a few seconds of each other? You could track the last submitted time in a session and ignore further submissions if they&#039;re posted within 2 or 3 seconds.</description>
		<content:encoded><![CDATA[<p>How about ignoring repeat form submissions posted within a few seconds of each other? You could track the last submitted time in a session and ignore further submissions if they&#8217;re posted within 2 or 3 seconds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Does your website still need to be functional with Javascript disabled or unsupported? by Ed Yarnold</title>
		<link>http://www.edwardyarnold.co.uk/blog/does-your-website-still-need-to-be-functional-with-javascript-disabled-or-unsupported/comment-page-1#comment-635</link>
		<dc:creator>Ed Yarnold</dc:creator>
		<pubDate>Tue, 16 Nov 2010 08:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=149#comment-635</guid>
		<description>Tom, one other thing is.. if you&#039;ve a slow internet connection and the whole page hasn&#039;t loaded yet and you click a button.. the Javascript event handler probably hasn&#039;t been attached yet.  The last thing you want is a hard failure in this situation!

Also, remember that a lot of people add the event handlers once the whole page has loaded and not when the DOM is ready... which means the time before the JS will &#039;work&#039; is even longer...</description>
		<content:encoded><![CDATA[<p>Tom, one other thing is.. if you&#8217;ve a slow internet connection and the whole page hasn&#8217;t loaded yet and you click a button.. the Javascript event handler probably hasn&#8217;t been attached yet.  The last thing you want is a hard failure in this situation!</p>
<p>Also, remember that a lot of people add the event handlers once the whole page has loaded and not when the DOM is ready&#8230; which means the time before the JS will &#8216;work&#8217; is even longer&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Does your website still need to be functional with Javascript disabled or unsupported? by Tom</title>
		<link>http://www.edwardyarnold.co.uk/blog/does-your-website-still-need-to-be-functional-with-javascript-disabled-or-unsupported/comment-page-1#comment-632</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 15 Nov 2010 22:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=149#comment-632</guid>
		<description>This is the point where I like to remind people that one small error in your JavaScript can potentially prevent all scripts on the page from functioning, at which point you&#039;ll be glad that you put a few small fall-backs in place. :-)</description>
		<content:encoded><![CDATA[<p>This is the point where I like to remind people that one small error in your JavaScript can potentially prevent all scripts on the page from functioning, at which point you&#8217;ll be glad that you put a few small fall-backs in place. <img src='http://www.edwardyarnold.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Coding things the quick way &#8211; often a false economy by Ed Yarnold</title>
		<link>http://www.edwardyarnold.co.uk/blog/coding-things-the-quick-way-often-false-economy/comment-page-1#comment-271</link>
		<dc:creator>Ed Yarnold</dc:creator>
		<pubDate>Wed, 04 Aug 2010 13:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=129#comment-271</guid>
		<description>Wow, thanks Tom. Never thought of doing it that way!  I must investigate triggers and views some more, I&#039;ve never used them myself (not yet anyway).</description>
		<content:encoded><![CDATA[<p>Wow, thanks Tom. Never thought of doing it that way!  I must investigate triggers and views some more, I&#8217;ve never used them myself (not yet anyway).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Coding things the quick way &#8211; often a false economy by Tom</title>
		<link>http://www.edwardyarnold.co.uk/blog/coding-things-the-quick-way-often-false-economy/comment-page-1#comment-270</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 04 Aug 2010 12:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=129#comment-270</guid>
		<description>Alternatively you could cater for this in your database rather than modifying your script.

In MySQL you can make use of triggers and views to accomplish what you&#039;re after; set triggers on DELETE statements to update the record with is_deleted = 1, and views to select table contents where is_deleted = 0.

The only change you&#039;d need to make to your model(s) is to select from the view rather than the actual table.</description>
		<content:encoded><![CDATA[<p>Alternatively you could cater for this in your database rather than modifying your script.</p>
<p>In MySQL you can make use of triggers and views to accomplish what you&#8217;re after; set triggers on DELETE statements to update the record with is_deleted = 1, and views to select table contents where is_deleted = 0.</p>
<p>The only change you&#8217;d need to make to your model(s) is to select from the view rather than the actual table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Should you sanitise your HTML before or after you save to your database? by Ed Yarnold</title>
		<link>http://www.edwardyarnold.co.uk/blog/when-to-sanitise-data/comment-page-1#comment-32</link>
		<dc:creator>Ed Yarnold</dc:creator>
		<pubDate>Mon, 26 Apr 2010 10:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=85#comment-32</guid>
		<description>Can&#039;t believe I missed that point, Tom!  I had that very situation a few weeks ago.  A site had been built where all data was htmlentitied.  We wanted to export a stock list to PDF but had to unhtmlentity everything first.  Not a pretty solution, and it could have been avoided with a bit of foresightedness!</description>
		<content:encoded><![CDATA[<p>Can&#8217;t believe I missed that point, Tom!  I had that very situation a few weeks ago.  A site had been built where all data was htmlentitied.  We wanted to export a stock list to PDF but had to unhtmlentity everything first.  Not a pretty solution, and it could have been avoided with a bit of foresightedness!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Should you sanitise your HTML before or after you save to your database? by Tom</title>
		<link>http://www.edwardyarnold.co.uk/blog/when-to-sanitise-data/comment-page-1#comment-28</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sat, 24 Apr 2010 23:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=85#comment-28</guid>
		<description>In my mind it&#039;s clear - always perform data filtering on output. Why? Because it offers more flexibilty. Sure, you may just be displaying  data on a web page for now, but if you want to be more creative in future (e.g. export to Excel or PDF) you&#039;ll likely not want special characters escaped to HTML entities and the like.</description>
		<content:encoded><![CDATA[<p>In my mind it&#8217;s clear &#8211; always perform data filtering on output. Why? Because it offers more flexibilty. Sure, you may just be displaying  data on a web page for now, but if you want to be more creative in future (e.g. export to Excel or PDF) you&#8217;ll likely not want special characters escaped to HTML entities and the like.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

