<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: JavaScript Object Literal Notation</title>
	<link>http://www.fotiweb.com/2006/12/13/javascript-object-literal-notation/</link>
	<description>All things Foti!</description>
	<pubDate>Thu, 20 Nov 2008 15:44:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Peter Foti</title>
		<link>http://www.fotiweb.com/2006/12/13/javascript-object-literal-notation/#comment-4217</link>
		<dc:creator>Peter Foti</dc:creator>
		<pubDate>Sat, 17 Nov 2007 22:26:00 +0000</pubDate>
		<guid>http://www.fotiweb.com/2006/12/13/javascript-object-literal-notation/#comment-4217</guid>
		<description>Yes, you can have parameter values as functions.  They can hold anything a normal variable can hold... strings, numbers, booleans, arrays, or objects (am I forgetting anything?).  Here's a quick example:
&lt;pre&gt;
&lt;code&gt;
var person = {
    name : 'Peter Foti',
    weight : 175,
    eatDonut : function() {
        this.weight += 5;
    }
};
alert( person.name + " has a weight of " + person.weight );
person.eatDonut();
alert( "After a donut, the new weight is " + person.weight );
&lt;/code&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Yes, you can have parameter values as functions.  They can hold anything a normal variable can hold&#8230; strings, numbers, booleans, arrays, or objects (am I forgetting anything?).  Here&#8217;s a quick example:</p>
<pre>
<code>
var person = {
    name : 'Peter Foti',
    weight : 175,
    eatDonut : function() {
        this.weight += 5;
    }
};
alert( person.name + " has a weight of " + person.weight );
person.eatDonut();
alert( "After a donut, the new weight is " + person.weight );
</code>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Werbeagentur Düsseldorf</title>
		<link>http://www.fotiweb.com/2006/12/13/javascript-object-literal-notation/#comment-4216</link>
		<dc:creator>Werbeagentur Düsseldorf</dc:creator>
		<pubDate>Sat, 17 Nov 2007 19:38:32 +0000</pubDate>
		<guid>http://www.fotiweb.com/2006/12/13/javascript-object-literal-notation/#comment-4216</guid>
		<description>a question about parameters in the object literal notation. can you only have literals as parameters or you also have parameter values be functions like so:
name = {

parameter1 : document.getElementById(‘id’);
function1 : function() {
code…
}
}

Please reply

THANKS THANKS THANKS</description>
		<content:encoded><![CDATA[<p>a question about parameters in the object literal notation. can you only have literals as parameters or you also have parameter values be functions like so:<br />
name = {</p>
<p>parameter1 : document.getElementById(‘id’);<br />
function1 : function() {<br />
code…<br />
}<br />
}</p>
<p>Please reply</p>
<p>THANKS THANKS THANKS</p>
]]></content:encoded>
	</item>
</channel>
</rss>
