<?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 on: JavaScript timers &#8211; using functions and scope</title>
	<atom:link href="http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/</link>
	<description>Web development and Internet trends</description>
	<lastBuildDate>Tue, 16 Mar 2010 16:09:41 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ??????? &#187; [Web] ????</title>
		<link>http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/#comment-565284</link>
		<dc:creator>??????? &#187; [Web] ????</dc:creator>
		<pubDate>Thu, 09 Apr 2009 03:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=1041#comment-565284</guid>
		<description>[...] JavaScript timers - using functions and scope [...]</description>
		<content:encoded><![CDATA[<p>[...] JavaScript timers &#8211; using functions and scope [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/#comment-488044</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Fri, 19 Dec 2008 15:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=1041#comment-488044</guid>
		<description>Stefan,

Stop it, you&#039;re just making me blush!
But thank you! :-)

Not sure the book is going to happen. to be honest, I&#039;ve had a few options/alternatives, but so far I&#039;ve turned them - mostly because it takes &lt;em&gt;a lot&lt;/em&gt; of time, effort and energy to write a book.</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>Stop it, you&#8217;re just making me blush!<br />
But thank you! <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Not sure the book is going to happen. to be honest, I&#8217;ve had a few options/alternatives, but so far I&#8217;ve turned them &#8211; mostly because it takes <em>a lot</em> of time, effort and energy to write a book.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Van Reeth</title>
		<link>http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/#comment-487583</link>
		<dc:creator>Stefan Van Reeth</dc:creator>
		<pubDate>Thu, 18 Dec 2008 20:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=1041#comment-487583</guid>
		<description>There was a time I hunted the net for tutorials like this one. Nowadays I find this to be just basic stuff (off course ;) ). But man would I have loved to read this then. And for those who wonder: yes I&#039;ve been guilty too. Until the day I heard the word &#039;closure&#039;, I used strings as parameters for timers. No worries, I&#039;m cured now.

Robert, without any kidding, you&#039;re really a fine teacher. Exact, to the point and still concerning alternatives. On top of that you pour it all into very readable texts that are quite enjoyable to read.

Ever thought of writing some JavaScript book? You would have at least one reader if the latter chapters would be a little more hardcore :)</description>
		<content:encoded><![CDATA[<p>There was a time I hunted the net for tutorials like this one. Nowadays I find this to be just basic stuff (off course <img src='http://robertnyman.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ). But man would I have loved to read this then. And for those who wonder: yes I&#8217;ve been guilty too. Until the day I heard the word &#8216;closure&#8217;, I used strings as parameters for timers. No worries, I&#8217;m cured now.</p>
<p>Robert, without any kidding, you&#8217;re really a fine teacher. Exact, to the point and still concerning alternatives. On top of that you pour it all into very readable texts that are quite enjoyable to read.</p>
<p>Ever thought of writing some JavaScript book? You would have at least one reader if the latter chapters would be a little more hardcore <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/#comment-487510</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Thu, 18 Dec 2008 09:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=1041#comment-487510</guid>
		<description>Chris,

Thanks!
You can send in any number of parameters you want to - this was just to simplify the object reference itself. But, just remember that the value of those parameters will be their value when the closure was created, i.e. when you caled &lt;code&gt;setElmBGColor&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>Thanks!<br />
You can send in any number of parameters you want to &#8211; this was just to simplify the object reference itself. But, just remember that the value of those parameters will be their value when the closure was created, i.e. when you caled <code>setElmBGColor</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/#comment-487505</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 18 Dec 2008 08:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=1041#comment-487505</guid>
		<description>Thank you very much for this article. :-)
There&#039;s one last thing I don&#039;t really understand: In your example &quot;Scope &lt;em&gt;And&lt;/em&gt; Closure&quot; you use scope in order to pass arguments to the anonymous function but also pass &lt;em&gt;this&lt;/em&gt; as an argument. Why isn&#039;t it possible to pass multiple arguments like &lt;em&gt;this&lt;/em&gt;?</description>
		<content:encoded><![CDATA[<p>Thank you very much for this article. <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
There&#8217;s one last thing I don&#8217;t really understand: In your example &#8220;Scope <em>And</em> Closure&#8221; you use scope in order to pass arguments to the anonymous function but also pass <em>this</em> as an argument. Why isn&#8217;t it possible to pass multiple arguments like <em>this</em>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/#comment-487224</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Wed, 17 Dec 2008 15:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=1041#comment-487224</guid>
		<description>Henrik,

Thanks!</description>
		<content:encoded><![CDATA[<p>Henrik,</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik Pejer</title>
		<link>http://robertnyman.com/2008/12/16/javascript-timers-using-functions-and-scope/#comment-487021</link>
		<dc:creator>Henrik Pejer</dc:creator>
		<pubDate>Wed, 17 Dec 2008 08:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=1041#comment-487021</guid>
		<description>Yepp, thats timers like i&#039;ve never done em before.

Good job man!</description>
		<content:encoded><![CDATA[<p>Yepp, thats timers like i&#8217;ve never done em before.</p>
<p>Good job man!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
