<?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"
	>
<channel>
	<title>Comments on: JavaScript appendChild returning null</title>
	<atom:link href="http://pixelcort.com/251/feed" rel="self" type="application/rss+xml" />
	<link>http://pixelcort.com/251</link>
	<description>Young entrepreneur in progress.</description>
	<pubDate>Mon, 01 Dec 2008 20:49:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Michael</title>
		<link>http://pixelcort.com/251#comment-4502</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 03 Apr 2008 22:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://pixelcort.com/251#comment-4502</guid>
		<description>&lt;p&gt;That code executes when it's loaded; since when that code executes, the ul is not created yet. (you get the same problem if you move the script to the body before the ul is created).  I would encapsulate that into a function that is executed on an event (eg, body onload="init_page()" or whatever).&lt;/p&gt;

&lt;p&gt;If you're not already, I suggest using Firebug for Firefox- it makes javascript debugging infinitely easier.  Looking into a javascript framework, such as MochiKit, will also make life a lot better (at least, it did for me).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>That code executes when it&#8217;s loaded; since when that code executes, the ul is not created yet. (you get the same problem if you move the script to the body before the ul is created).  I would encapsulate that into a function that is executed on an event (eg, body onload=&#8221;init_page()&#8221; or whatever).</p>

<p>If you&#8217;re not already, I suggest using Firebug for Firefox- it makes javascript debugging infinitely easier.  Looking into a javascript framework, such as MochiKit, will also make life a lot better (at least, it did for me).</p>]]></content:encoded>
	</item>
</channel>
</rss>
