<?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: Getting Rid of the &quot;handler.call: handler undefined&quot; Error</title>
	<atom:link href="http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/</link>
	<description>The Fastest Way to Launch Successful Software</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:36:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Pums</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9183</link>
		<dc:creator>Pums</dc:creator>
		<pubDate>Sat, 11 Jul 2009 10:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9183</guid>
		<description>document.observe(&#039;dom:loaded&#039;, function(){test(&#039;hi&#039;)});

Seems to work ok when parameters are needed in the callback</description>
		<content:encoded><![CDATA[<p>document.observe(&#8216;dom:loaded&#8217;, function(){test(&#8216;hi&#8217;)});</p>
<p>Seems to work ok when parameters are needed in the callback</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: juanjo</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9182</link>
		<dc:creator>juanjo</dc:creator>
		<pubDate>Mon, 06 Jul 2009 10:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9182</guid>
		<description>I have the same question. How can I pass a parameter to the callback function? If i do, the handler becomes undefined.

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>I have the same question. How can I pass a parameter to the callback function? If i do, the handler becomes undefined.</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno Lacerda</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9181</link>
		<dc:creator>Bruno Lacerda</dc:creator>
		<pubDate>Tue, 09 Jun 2009 12:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9181</guid>
		<description>Hi Daniel Convissor.
And if the calback function needs a parameter to be executed?
How can I pass this parameter to the calback or in this case it&#039;s not necessary?</description>
		<content:encoded><![CDATA[<p>Hi Daniel Convissor.<br />
And if the calback function needs a parameter to be executed?<br />
How can I pass this parameter to the calback or in this case it&#8217;s not necessary?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Convissor</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9180</link>
		<dc:creator>Daniel Convissor</dc:creator>
		<pubDate>Tue, 10 Mar 2009 16:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9180</guid>
		<description>The problem arises when the handler parameter to Event.observe is undefined.  The likely cause of your error is the following.

   // Wrong.  Passing result of callback function.
   Event.observe(window, &quot;load&quot;, the_callback());

In the example above, the_callback() is being executed as you are making the Event.observe() call.  That means the _result_ of the_callback() is being passed as the &quot;handler&quot; parameter of Event.observe().

   // Correct.  Passing name of callback function.
   Event.observe(window, &quot;load&quot;, the_callback);

In this case, you are passing the _name_ of the function to the &quot;handler&quot; parameter of Event.observe().</description>
		<content:encoded><![CDATA[<p>The problem arises when the handler parameter to Event.observe is undefined.  The likely cause of your error is the following.</p>
<p>   // Wrong.  Passing result of callback function.<br />
   Event.observe(window, &#8220;load&#8221;, the_callback());</p>
<p>In the example above, the_callback() is being executed as you are making the Event.observe() call.  That means the _result_ of the_callback() is being passed as the &#8220;handler&#8221; parameter of Event.observe().</p>
<p>   // Correct.  Passing name of callback function.<br />
   Event.observe(window, &#8220;load&#8221;, the_callback);</p>
<p>In this case, you are passing the _name_ of the function to the &#8220;handler&#8221; parameter of Event.observe().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyche</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9179</link>
		<dc:creator>Tyche</dc:creator>
		<pubDate>Sat, 07 Mar 2009 16:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9179</guid>
		<description>Thank you for publishing this fix , I&#039;m glad you were as annoyed as I was with this error</description>
		<content:encoded><![CDATA[<p>Thank you for publishing this fix , I&#8217;m glad you were as annoyed as I was with this error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srikant</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9178</link>
		<dc:creator>Srikant</dc:creator>
		<pubDate>Fri, 06 Mar 2009 18:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9178</guid>
		<description>Thanks for the solution.
It takes care of error.</description>
		<content:encoded><![CDATA[<p>Thanks for the solution.<br />
It takes care of error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quleczka</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9177</link>
		<dc:creator>Quleczka</dc:creator>
		<pubDate>Sun, 01 Mar 2009 13:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9177</guid>
		<description>thanks for info :) my first thought was it is me doing something wrong with prototype Event.observe :)</description>
		<content:encoded><![CDATA[<p>thanks for info <img src='http://pathfindersoftware.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  my first thought was it is me doing something wrong with prototype Event.observe <img src='http://pathfindersoftware.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BugFix</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9176</link>
		<dc:creator>BugFix</dc:creator>
		<pubDate>Sun, 08 Feb 2009 06:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9176</guid>
		<description>Thanxs a lot - it helped! ;-)</description>
		<content:encoded><![CDATA[<p>Thanxs a lot &#8211; it helped! <img src='http://pathfindersoftware.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sander</title>
		<link>http://pathfindersoftware.com/2009/01/getting-rid-of-the-undefined-handler-call-error/#comment-9175</link>
		<dc:creator>Sander</dc:creator>
		<pubDate>Tue, 27 Jan 2009 23:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1348#comment-9175</guid>
		<description>Thank you! This indeed prevents the &#039;handler is undefined&#039; error from showing up. I use Prototype a lot to observe dom:loaded and never understood where this error came from.</description>
		<content:encoded><![CDATA[<p>Thank you! This indeed prevents the &#8216;handler is undefined&#8217; error from showing up. I use Prototype a lot to observe dom:loaded and never understood where this error came from.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (User agent is rejected)
Page Caching using memcached (User agent is rejected)

Served from: pathfindersoftware.com @ 2012-02-10 02:29:45 -->
