<?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 Richard Morgan</title>
	<atom:link href="http://richardmorgan.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://richardmorgan.com</link>
	<description>Web Development</description>
	<lastBuildDate>Tue, 30 Aug 2011 20:22:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>Comment on jQuery Dom Exception: INVALID_CHARACTER_ERR (5) in IE9 by Brian</title>
		<link>http://richardmorgan.com/web-development/jquery-dom-exception-invalid_character_err-5-in-ie9/#comment-543</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 30 Aug 2011 20:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=53#comment-543</guid>
		<description>This was really helpful. Thanks!</description>
		<content:encoded><![CDATA[<p>This was really helpful. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Dom Exception: INVALID_CHARACTER_ERR (5) in IE9 by Duc</title>
		<link>http://richardmorgan.com/web-development/jquery-dom-exception-invalid_character_err-5-in-ie9/#comment-542</link>
		<dc:creator>Duc</dc:creator>
		<pubDate>Thu, 25 Aug 2011 05:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=53#comment-542</guid>
		<description>Thansk Richard,

I did following your solution and it is ok now.</description>
		<content:encoded><![CDATA[<p>Thansk Richard,</p>
<p>I did following your solution and it is ok now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Dom Exception: INVALID_CHARACTER_ERR (5) in IE9 by Dan Mendell</title>
		<link>http://richardmorgan.com/web-development/jquery-dom-exception-invalid_character_err-5-in-ie9/#comment-536</link>
		<dc:creator>Dan Mendell</dc:creator>
		<pubDate>Tue, 17 May 2011 04:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=53#comment-536</guid>
		<description>Hi Richard,

Thanks for this heads up, you were right. (:-)</description>
		<content:encoded><![CDATA[<p>Hi Richard,</p>
<p>Thanks for this heads up, you were right. (:-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Dom Exception: INVALID_CHARACTER_ERR (5) in IE9 by Frank</title>
		<link>http://richardmorgan.com/web-development/jquery-dom-exception-invalid_character_err-5-in-ie9/#comment-521</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 12 Apr 2011 19:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=53#comment-521</guid>
		<description>Excellent! Been receiving this error in VS 2008 ever since I updated to IE9.
Was becoming a real pain!</description>
		<content:encoded><![CDATA[<p>Excellent! Been receiving this error in VS 2008 ever since I updated to IE9.<br />
Was becoming a real pain!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Dom Exception: INVALID_CHARACTER_ERR (5) in IE9 by Ronald</title>
		<link>http://richardmorgan.com/web-development/jquery-dom-exception-invalid_character_err-5-in-ie9/#comment-318</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Fri, 25 Mar 2011 03:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=53#comment-318</guid>
		<description>Thanks! Just got this error in IE9</description>
		<content:encoded><![CDATA[<p>Thanks! Just got this error in IE9</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple PHP Puzzle by Richard Morgan</title>
		<link>http://richardmorgan.com/web-development/simple-php-puzzle/#comment-310</link>
		<dc:creator>Richard Morgan</dc:creator>
		<pubDate>Sun, 10 Oct 2010 00:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=44#comment-310</guid>
		<description>Haha Jon, I&#039;ve done that before. Given an answer then said, &quot;I mean, the opposite!&quot; I got a puzzled look, as if you say, &quot;I&#039;ll give you that--maybe.&quot;

Phil, Dody, you&#039;re both right. Defining the constant would fix the problem. However, I was looking for Jon&#039;s answer. HIDE_NAV is undefined, but why is that a problem? Undefined variables get evaluated as false. Constants, however, get interpreted as strings.

BTW, a couple blatantly wrong answers would be someone scratching their head and saying, &quot;But ... HIDE_NAV isn&#039;t defined -- that should error!&quot; Or worse yet would be someone responding, &quot;The navigation didn&#039;t get displayed because getNav() wasn&#039;t defined till after it was called!

But yes, Jon hit it right on, and it would be a great chance for him to top it off with any other useful details about how strings or constants or variables work and really stand out from the rest.

For example, what does an undefined variable really equal? It&#039;s not false. Is it null? What does isset() check? That a variable is defined or that a variable is not null? Etc.

I&#039;ll try to post another slightly harder question in a few days!</description>
		<content:encoded><![CDATA[<p>Haha Jon, I&#8217;ve done that before. Given an answer then said, &#8220;I mean, the opposite!&#8221; I got a puzzled look, as if you say, &#8220;I&#8217;ll give you that&#8211;maybe.&#8221;</p>
<p>Phil, Dody, you&#8217;re both right. Defining the constant would fix the problem. However, I was looking for Jon&#8217;s answer. HIDE_NAV is undefined, but why is that a problem? Undefined variables get evaluated as false. Constants, however, get interpreted as strings.</p>
<p>BTW, a couple blatantly wrong answers would be someone scratching their head and saying, &#8220;But &#8230; HIDE_NAV isn&#8217;t defined &#8212; that should error!&#8221; Or worse yet would be someone responding, &#8220;The navigation didn&#8217;t get displayed because getNav() wasn&#8217;t defined till after it was called!</p>
<p>But yes, Jon hit it right on, and it would be a great chance for him to top it off with any other useful details about how strings or constants or variables work and really stand out from the rest.</p>
<p>For example, what does an undefined variable really equal? It&#8217;s not false. Is it null? What does isset() check? That a variable is defined or that a variable is not null? Etc.</p>
<p>I&#8217;ll try to post another slightly harder question in a few days!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple PHP Puzzle by Dody</title>
		<link>http://richardmorgan.com/web-development/simple-php-puzzle/#comment-309</link>
		<dc:creator>Dody</dc:creator>
		<pubDate>Sat, 09 Oct 2010 23:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=44#comment-309</guid>
		<description>Because HIDE_NAV is not defined.
Now give me a new job :)</description>
		<content:encoded><![CDATA[<p>Because HIDE_NAV is not defined.<br />
Now give me a new job <img src='http://richardmorgan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple PHP Puzzle by Phil</title>
		<link>http://richardmorgan.com/web-development/simple-php-puzzle/#comment-308</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sat, 09 Oct 2010 15:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=44#comment-308</guid>
		<description>The simple answer, &quot;define( &#039;HIDE_NAV&#039;, false );&quot; between lines 1 and 7 in home.php or between lines 1 and 4 in skin.php.

I&#039;ll e-mail the more elegant design on request.

(not to mention, depending on your PHP version / distro, adding &#039;php&#039; to the end of line 1 in each file)</description>
		<content:encoded><![CDATA[<p>The simple answer, &#8220;define( &#8216;HIDE_NAV&#8217;, false );&#8221; between lines 1 and 7 in home.php or between lines 1 and 4 in skin.php.</p>
<p>I&#8217;ll e-mail the more elegant design on request.</p>
<p>(not to mention, depending on your PHP version / distro, adding &#8216;php&#8217; to the end of line 1 in each file)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple PHP Puzzle by Jon Bourne</title>
		<link>http://richardmorgan.com/web-development/simple-php-puzzle/#comment-307</link>
		<dc:creator>Jon Bourne</dc:creator>
		<pubDate>Sat, 09 Oct 2010 07:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=44#comment-307</guid>
		<description>Actually, that was exactly backwards logic... :(

&lt;code&gt;if ( !defined( &#039;HIDE_NAV&#039; ) &#124;&#124; !constant( &#039;HIDE_NAV&#039; ) )&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Actually, that was exactly backwards logic&#8230; <img src='http://richardmorgan.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><code>if ( !defined( 'HIDE_NAV' ) || !constant( 'HIDE_NAV' ) )</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple PHP Puzzle by Jon Bourne</title>
		<link>http://richardmorgan.com/web-development/simple-php-puzzle/#comment-306</link>
		<dc:creator>Jon Bourne</dc:creator>
		<pubDate>Sat, 09 Oct 2010 07:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardmorgan.com/?p=44#comment-306</guid>
		<description>HIDE_NAV is interpreted as a string value, and therefore is never false but always true. Instead:

&lt;code&gt;if ( defined( &#039;HIDE_NAV&#039; ) &amp;&amp; constant( &#039;HIDE_NAV&#039; ) )&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>HIDE_NAV is interpreted as a string value, and therefore is never false but always true. Instead:</p>
<p><code>if ( defined( 'HIDE_NAV' ) &amp;&amp; constant( 'HIDE_NAV' ) )</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

