<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: JavaScript Difference Between null and undefined</title>
	<atom:link href="http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/feed/" rel="self" type="application/rss+xml" />
	<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/</link>
	<description>... And You Can Too</description>
	<lastBuildDate>Thu, 11 Mar 2010 07:15:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: doez</title>
		<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-61</link>
		<dc:creator>doez</dc:creator>
		<pubDate>Mon, 30 Mar 2009 09:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://techsaints.wordpress.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-61</guid>
		<description>ok thx</description>
		<content:encoded><![CDATA[<p>ok thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doez</title>
		<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-60</link>
		<dc:creator>doez</dc:creator>
		<pubDate>Mon, 30 Mar 2009 09:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://techsaints.wordpress.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-60</guid>
		<description>ok thc</description>
		<content:encoded><![CDATA[<p>ok thc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Santosh Kumar</title>
		<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-59</link>
		<dc:creator>Santosh Kumar</dc:creator>
		<pubDate>Fri, 26 Dec 2008 11:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://techsaints.wordpress.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-59</guid>
		<description>Thanks for give this type of help, this is great work Done. this example is useful for handling (boolean ,numeric and string ) null value.

Santosh Kumar
http://www.operativesystems.com</description>
		<content:encoded><![CDATA[<p>Thanks for give this type of help, this is great work Done. this example is useful for handling (boolean ,numeric and string ) null value.</p>
<p>Santosh Kumar<br />
<a href="http://www.operativesystems.com" rel="nofollow">http://www.operativesystems.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naomi</title>
		<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-57</link>
		<dc:creator>Naomi</dc:creator>
		<pubDate>Mon, 30 Jun 2008 23:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://techsaints.wordpress.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-57</guid>
		<description>For some reason, this code doesn&#039;t work for me:

if (typeof(Page_Validators) != &quot;undefined&quot;)
      {
        for (i=0;i&lt;Page_Validators.length;i++) {
            if(Page_Validators[i].innerHTML.match(&#039;Required&#039;))Page_Validators[i].style.display=&quot;block&quot;;
        }
      }

The line with typeof produces the error. This is very strange.</description>
		<content:encoded><![CDATA[<p>For some reason, this code doesn&#8217;t work for me:</p>
<p>if (typeof(Page_Validators) != &#8220;undefined&#8221;)<br />
      {<br />
        for (i=0;i&lt;Page_Validators.length;i++) {<br />
            if(Page_Validators[i].innerHTML.match(&#8216;Required&#8217;))Page_Validators[i].style.display=&#8221;block&#8221;;<br />
        }<br />
      }</p>
<p>The line with typeof produces the error. This is very strange.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-56</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Sun, 08 Jul 2007 04:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://techsaints.wordpress.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-56</guid>
		<description>Scarab,

Have you attempted to use the typeof operator to determine the existence of the variable? The typeof operator is placed before an operand and returns a string containing the datatype of the operand. If the operand is undefined, it returns &#039;undefined.&#039;

Consider the following example:

var aryTest = [1,2,3,4];

if(typeof aryTest == &#039;undefined&#039;)
  document.write(&#039;not defined&#039;);
else
  document.write(&#039;defined&#039;);

In the preceding example, &#039;defined&#039; is written to the page since aryTest has in fact been defined. If you take away the line where aryTest is set, then &#039;undefined&#039; will be written to the page.

Please let me know if this answers your question.</description>
		<content:encoded><![CDATA[<p>Scarab,</p>
<p>Have you attempted to use the typeof operator to determine the existence of the variable? The typeof operator is placed before an operand and returns a string containing the datatype of the operand. If the operand is undefined, it returns &#39;undefined.&#39;</p>
<p>Consider the following example:</p>
<p>var aryTest = [1,2,3,4];</p>
<p>if(typeof aryTest == &#39;undefined&#39;)<br />
  document.write(&#39;not defined&#39;);<br />
else<br />
  document.write(&#39;defined&#39;);</p>
<p>In the preceding example, &#39;defined&#39; is written to the page since aryTest has in fact been defined. If you take away the line where aryTest is set, then &#39;undefined&#39; will be written to the page.</p>
<p>Please let me know if this answers your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scarab</title>
		<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-54</link>
		<dc:creator>Scarab</dc:creator>
		<pubDate>Fri, 06 Jul 2007 16:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://techsaints.wordpress.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-54</guid>
		<description>oops, the whole comment was not displayed above..

if (document.all) -- this gives no error

if (arrayName) -- this gives an error

if (arrayName == undefined)
if (arrayName == &quot;undefined&quot;) -- these also give errors.

I hope you understand my dilemma and can give me some insight on what to do. Thanks!</description>
		<content:encoded><![CDATA[<p>oops, the whole comment was not displayed above..</p>
<p>if (document.all) &#8212; this gives no error</p>
<p>if (arrayName) &#8212; this gives an error</p>
<p>if (arrayName == undefined)<br />
if (arrayName == &#8220;undefined&#8221;) &#8212; these also give errors.</p>
<p>I hope you understand my dilemma and can give me some insight on what to do. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scarab</title>
		<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-55</link>
		<dc:creator>Scarab</dc:creator>
		<pubDate>Fri, 06 Jul 2007 16:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://techsaints.wordpress.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-55</guid>
		<description>Joey,

I&#039;m wondering if you can help me figure out how to detect the non-existence of an array object without producing an error. Here is the scenario:

I want to extend the functionality of an existing js application (a well know popular tool-tip application) without having to recode the 1000 + pages already linked to the js code page.

I want to define an array with new setting for the tooltips, like size of the box, font face, other variables that are normally set when the js page runs. The script I wrote tries to detect the existence of the array with the preferences I put into it, parses them out and sets them before the div layers are built... works great for pages that have the preference array defined... but the rest of the pages that do not have the array defined produce a js error that the array is not defined.

Why is it that object detection works on html element type arrays but not on user defined arrays?:

if (document.all)</description>
		<content:encoded><![CDATA[<p>Joey,</p>
<p>I&#8217;m wondering if you can help me figure out how to detect the non-existence of an array object without producing an error. Here is the scenario:</p>
<p>I want to extend the functionality of an existing js application (a well know popular tool-tip application) without having to recode the 1000 + pages already linked to the js code page.</p>
<p>I want to define an array with new setting for the tooltips, like size of the box, font face, other variables that are normally set when the js page runs. The script I wrote tries to detect the existence of the array with the preferences I put into it, parses them out and sets them before the div layers are built&#8230; works great for pages that have the preference array defined&#8230; but the rest of the pages that do not have the array defined produce a js error that the array is not defined.</p>
<p>Why is it that object detection works on html element type arrays but not on user defined arrays?:</p>
<p>if (document.all)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terabanitoss</title>
		<link>http://joeyjavas.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-53</link>
		<dc:creator>Terabanitoss</dc:creator>
		<pubDate>Mon, 07 May 2007 06:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://techsaints.wordpress.com/2007/04/25/javascript-difference-between-null-and-undefined/#comment-53</guid>
		<description>Hi all!
You are The Best!!!
G&#039;night</description>
		<content:encoded><![CDATA[<p>Hi all!<br />
You are The Best!!!<br />
G&#8217;night</p>
]]></content:encoded>
	</item>
</channel>
</rss>
