<?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: Events with MooTools - Element, Class, Delegation and Pseudos</title>
	<atom:link href="http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/feed/" rel="self" type="application/rss+xml" />
	<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/</link>
	<description>The Blog</description>
	<lastBuildDate>Thu, 30 May 2013 22:46:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jonathan</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-3549</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Mon, 20 May 2013 09:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-3549</guid>
		<description>&lt;p&gt;Thanks for writing this!  I definitely learned a few things!  The more I use mootools the more I notice consistency in the way things are done &amp; I really appreciate the effort that goes into making it that way.  It makes my life easier :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for writing this!  I definitely learned a few things!  The more I use mootools the more I notice consistency in the way things are done &amp; I really appreciate the effort that goes into making it that way.  It makes my life easier :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-2550</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Fri, 02 Mar 2012 02:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-2550</guid>
		<description>&lt;p&gt;Thanks for the great post!&lt;/p&gt;

&lt;p&gt;Got a question though... is there a way to get the returned value of the callback when using fireEvent?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the great post!</p>

<p>Got a question though&#8230; is there a way to get the returned value of the callback when using fireEvent?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Webdesigner</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-2456</link>
		<dc:creator>Webdesigner</dc:creator>
		<pubDate>Wed, 18 Jan 2012 04:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-2456</guid>
		<description>&lt;p&gt;very useful! just what i was searching for.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>very useful! just what i was searching for.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Edu</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-2266</link>
		<dc:creator>Edu</dc:creator>
		<pubDate>Wed, 09 Nov 2011 22:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-2266</guid>
		<description>&lt;p&gt;Where can I find all the available types of events for MooTools (like mouseenter, click, etc? I can&#039;t find a list of those in this reference and I am quite new to Javascript but I just figured MooTools doesn&#039;t use the same names...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Where can I find all the available types of events for MooTools (like mouseenter, click, etc? I can&#8217;t find a list of those in this reference and I am quite new to Javascript but I just figured MooTools doesn&#8217;t use the same names&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Lino</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1925</link>
		<dc:creator>Lino</dc:creator>
		<pubDate>Thu, 14 Apr 2011 03:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1925</guid>
		<description>&lt;p&gt;The event bubbing is very hard for me :). But now I know what is it. Great article on events.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The event bubbing is very hard for me :). But now I know what is it. Great article on events.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alvin Crespo</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1745</link>
		<dc:creator>Alvin Crespo</dc:creator>
		<pubDate>Thu, 31 Mar 2011 21:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1745</guid>
		<description>&lt;p&gt;Great article! Today I thought I&#039;d learn a bit more about MooTools and understanding events is a great way to learn a framework, and I have do have to say it was extremely useful to implement MT&#039;s way of adding/removing events, delegating and stoping default and propagation up the DOM.&lt;/p&gt;

&lt;p&gt;After reading this article to understand more behind the scenes, I can definitely say I am pleased to have started learning this framework.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great article! Today I thought I&#8217;d learn a bit more about MooTools and understanding events is a great way to learn a framework, and I have do have to say it was extremely useful to implement MT&#8217;s way of adding/removing events, delegating and stoping default and propagation up the DOM.</p>

<p>After reading this article to understand more behind the scenes, I can definitely say I am pleased to have started learning this framework.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Houston SQL Server Developer</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1739</link>
		<dc:creator>Houston SQL Server Developer</dc:creator>
		<pubDate>Thu, 31 Mar 2011 00:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1739</guid>
		<description>&lt;p&gt;Adrian, 
I appreciate your feedback.  And, I may just take you up on the ability to edit the Wiki pages and/or report inconsistencies I find.  I am undertaking the development of a component-set of sorts, which is making very heavy use of the pseudo-OOP Class-abilities that MooTools is providing.  In fact, that is nearly all I am using from MooTools currently... I just needed a nice way to treat JavaScript as sorta-OO since I could not otherwise deal with it (I am coming at this from the perspective of a Delphi developer where I have strong typing in the language and all the encapsulation features, etc of real OOP).&lt;/p&gt;

&lt;p&gt;So, I definitely appreciate the work you and your team have done on MooTools, for the little parts of it I am using.  And, I must say, the Class constructs are working pretty well for me so far.  I am just getting into implementing my events-handling layer, and I hope to leverage what MooTools has to offer.  No matter what, it has really helped me out and I am making great progress with JavaScript development that I thought would have been nearly impossible just a month or so ago.  Regards.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Adrian, 
I appreciate your feedback.  And, I may just take you up on the ability to edit the Wiki pages and/or report inconsistencies I find.  I am undertaking the development of a component-set of sorts, which is making very heavy use of the pseudo-OOP Class-abilities that MooTools is providing.  In fact, that is nearly all I am using from MooTools currently&#8230; I just needed a nice way to treat JavaScript as sorta-OO since I could not otherwise deal with it (I am coming at this from the perspective of a Delphi developer where I have strong typing in the language and all the encapsulation features, etc of real OOP).</p>

<p>So, I definitely appreciate the work you and your team have done on MooTools, for the little parts of it I am using.  And, I must say, the Class constructs are working pretty well for me so far.  I am just getting into implementing my events-handling layer, and I hope to leverage what MooTools has to offer.  No matter what, it has really helped me out and I am making great progress with JavaScript development that I thought would have been nearly impossible just a month or so ago.  Regards.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1737</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 30 Mar 2011 20:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1737</guid>
		<description>&lt;p&gt;Very usefull! thanks for this blogpost :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very usefull! thanks for this blogpost :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1736</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 30 Mar 2011 19:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1736</guid>
		<description>&lt;p&gt;First of all, thanks for the great tutorial. This tutorial should help a lot of beginners. So all guys begging for help with Events handling: read this blogpost and play with the jsFiddle widgets (examples) made by Arian! It&#039;s a real help trying and playing with it in a practical way, than just read about the events.&lt;/p&gt;

&lt;p&gt;@Houston SQL Server Developer
You&#039;ve got a few points here, but looking 2 years back from now, there&#039;s a huge growth and improvement at the Mootools side of the line. It&#039;s not really fair to blame Mootools for all inconsistencies of documentation, seeing that they put all there energy and free time into improvements, fixes, new documentation and plugins for the framework. 
They even kindly ask the community to back them up and help them if there are inconsistencies. They do anything for the framework to make the whole package a better present for the community.&lt;/p&gt;

&lt;p&gt;Mootools was like a cow 2 years ago, but from the sideline I see the framework rapidly growing to a cow with a ribbon that can give whipped cream directly to the community :-)&lt;/p&gt;

&lt;p&gt;Thanks again for brightening up Event handling!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>First of all, thanks for the great tutorial. This tutorial should help a lot of beginners. So all guys begging for help with Events handling: read this blogpost and play with the jsFiddle widgets (examples) made by Arian! It&#8217;s a real help trying and playing with it in a practical way, than just read about the events.</p>

<p>@Houston SQL Server Developer
You&#8217;ve got a few points here, but looking 2 years back from now, there&#8217;s a huge growth and improvement at the Mootools side of the line. It&#8217;s not really fair to blame Mootools for all inconsistencies of documentation, seeing that they put all there energy and free time into improvements, fixes, new documentation and plugins for the framework. 
They even kindly ask the community to back them up and help them if there are inconsistencies. They do anything for the framework to make the whole package a better present for the community.</p>

<p>Mootools was like a cow 2 years ago, but from the sideline I see the framework rapidly growing to a cow with a ribbon that can give whipped cream directly to the community :-)</p>

<p>Thanks again for brightening up Event handling!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Arian</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1735</link>
		<dc:creator>Arian</dc:creator>
		<pubDate>Wed, 30 Mar 2011 19:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1735</guid>
		<description>&lt;p&gt;The goal of this post was to tell more about events and assumes you know the basics a little. However you&#039;re right about the &lt;code&gt;.stop&lt;/code&gt; which I forgot. I updated the jsfiddle.&lt;/p&gt;

&lt;p&gt;Note that those are not screenprints, but embedded jsfiddles so you can play with the code yourself, run it and see what it does. I believe I added enough examples which are explained in the surrounding text.&lt;/p&gt;

&lt;p&gt;What you&#039;re saying about the &lt;em&gt;on&lt;/em&gt; part is that it is inconsistent in the MooToorial, is something that might be true, however the MooToorial is a great resource with a lot of info, but is a little outdated and written for mootools 1.2.  Also note that this about Class Events. To explain it once more:&lt;/p&gt;

&lt;p&gt;it is &lt;code&gt;onComplete&lt;/code&gt; when it&#039;s used in the options property with the &lt;code&gt;Options&lt;/code&gt; mixin. For everything it&#039;s just &lt;code&gt;complete&lt;/code&gt;. The examples in the MooToorial are wrong because they&#039;re outdated. Though it is a Wiki and you can fix it. Besides the MooToorial is not an official MooTools resource like the docs. Furthermore we&#039;re always considering and accepting changes to the docs, just look at how many little changes we made since 1.3.&lt;/p&gt;

&lt;p&gt;So what I tried with the post is to explain more about events than the docs could do. And what you could do is to report inconsistencies at lighthouse, ask questions at the google users group, come talk at IRC, but don&#039;t get angry alone and wast many hours, but rather ask so you&#039;ll learn new stuff and we might see how we could improve our docs or where we should write about in the next blog post.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The goal of this post was to tell more about events and assumes you know the basics a little. However you&#8217;re right about the <code>.stop</code> which I forgot. I updated the jsfiddle.</p>

<p>Note that those are not screenprints, but embedded jsfiddles so you can play with the code yourself, run it and see what it does. I believe I added enough examples which are explained in the surrounding text.</p>

<p>What you&#8217;re saying about the <em>on</em> part is that it is inconsistent in the MooToorial, is something that might be true, however the MooToorial is a great resource with a lot of info, but is a little outdated and written for mootools 1.2.  Also note that this about Class Events. To explain it once more:</p>

<p>it is <code>onComplete</code> when it&#8217;s used in the options property with the <code>Options</code> mixin. For everything it&#8217;s just <code>complete</code>. The examples in the MooToorial are wrong because they&#8217;re outdated. Though it is a Wiki and you can fix it. Besides the MooToorial is not an official MooTools resource like the docs. Furthermore we&#8217;re always considering and accepting changes to the docs, just look at how many little changes we made since 1.3.</p>

<p>So what I tried with the post is to explain more about events than the docs could do. And what you could do is to report inconsistencies at lighthouse, ask questions at the google users group, come talk at IRC, but don&#8217;t get angry alone and wast many hours, but rather ask so you&#8217;ll learn new stuff and we might see how we could improve our docs or where we should write about in the next blog post.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Houston SQL Server Developer</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1733</link>
		<dc:creator>Houston SQL Server Developer</dc:creator>
		<pubDate>Wed, 30 Mar 2011 17:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1733</guid>
		<description>&lt;p&gt;When reading through this article it is a bit confusing when references are made to code that does not yet show in an example.  In particular, within the early section entitled &quot;Element.Events&quot;, the second paragraph under the screen-print includes a sentence that states: &quot;In this case the stop method is called to stop all default behaviors, like following the link.&quot;...&lt;/p&gt;

&lt;p&gt;Well, that discussion talks about a &quot;stop method&quot; which is not shown or otherwise introduced in any code thus far displayed.  The method you refer to shows only later... you first are able to see that code in the &quot;Removing Events&quot; discussion in the JSFiddle gizmo at the end of that next section.&lt;/p&gt;

&lt;p&gt;Although this may sound trivial, it is the small oversights like this that will frustrate newcomers to MooTools.  I have encountered all sorts of things like this in the MooTools mootorials and help pages, and it nearly convinced me to pass MooTools up in favor of a competing approach.  Accurate documentation is just as important as the underlying technology if a framework is to be a truly useful framework.&lt;/p&gt;

&lt;p&gt;I was also comparing the Events discussion in this blog entry to what shows on the MooTorial site at: http://mootorial.com/wiki/mootorial/02-class/01-class.extras&lt;/p&gt;

&lt;p&gt;After doing so, my level of confusion just increases.  That mootorial page even states: &quot;In MooTools 1.2, Events starting with &#039;on&#039; are still supported in all methods and are converted to their representation without &#039;on&#039; (e.g. &#039;onComplete&#039; becomes &#039;complete&#039;). If you reference the &#039;on&#039; version (i.e. &#039;onComplete&#039;) it will still work, but this is deprecated.&quot;...&lt;/p&gt;

&lt;p&gt;But yet, I see the &quot;on&quot; prefix used immediately thereafter in examples; immediately after the statement that said &quot;on&quot; is deprecated, etc.  Oh please... please... just bring some consistency to all this documentation and show only the &lt;em&gt;preferred&lt;/em&gt; way to implement events so that I do not accidentally choose a way that no longer works with future versions.&lt;/p&gt;

&lt;p&gt;I am trying to fully embrace MooTools, and I think it has a lot of potential for my needs; but, I am also finding inconsistencies and a lack of clarity in documentation and discussions are adding much more time to the learning curve and thus slowing my adoption of the framework.  It would perhaps help quite a bit if you had your documents reviewed by someone not as familiar with the framework so that those things non-obvious (to outsiders) could be identified and corrected.  Many of the issues revolve around ambiguity introduced by grammatical constructs that are not as precise as they could be - something a technical-editor (person) could help clear up.  Just my thoughts.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>When reading through this article it is a bit confusing when references are made to code that does not yet show in an example.  In particular, within the early section entitled &#8220;Element.Events&#8221;, the second paragraph under the screen-print includes a sentence that states: &#8220;In this case the stop method is called to stop all default behaviors, like following the link.&#8221;&#8230;</p>

<p>Well, that discussion talks about a &#8220;stop method&#8221; which is not shown or otherwise introduced in any code thus far displayed.  The method you refer to shows only later&#8230; you first are able to see that code in the &#8220;Removing Events&#8221; discussion in the JSFiddle gizmo at the end of that next section.</p>

<p>Although this may sound trivial, it is the small oversights like this that will frustrate newcomers to MooTools.  I have encountered all sorts of things like this in the MooTools mootorials and help pages, and it nearly convinced me to pass MooTools up in favor of a competing approach.  Accurate documentation is just as important as the underlying technology if a framework is to be a truly useful framework.</p>

<p>I was also comparing the Events discussion in this blog entry to what shows on the MooTorial site at: <a href="http://mootorial.com/wiki/mootorial/02-class/01-class.extras" rel="nofollow">http://mootorial.com/wiki/mootorial/02-class/01-class.extras</a></p>

<p>After doing so, my level of confusion just increases.  That mootorial page even states: &#8220;In MooTools 1.2, Events starting with &#8216;on&#8217; are still supported in all methods and are converted to their representation without &#8216;on&#8217; (e.g. &#8216;onComplete&#8217; becomes &#8216;complete&#8217;). If you reference the &#8216;on&#8217; version (i.e. &#8216;onComplete&#8217;) it will still work, but this is deprecated.&#8221;&#8230;</p>

<p>But yet, I see the &#8220;on&#8221; prefix used immediately thereafter in examples; immediately after the statement that said &#8220;on&#8221; is deprecated, etc.  Oh please&#8230; please&#8230; just bring some consistency to all this documentation and show only the <em>preferred</em> way to implement events so that I do not accidentally choose a way that no longer works with future versions.</p>

<p>I am trying to fully embrace MooTools, and I think it has a lot of potential for my needs; but, I am also finding inconsistencies and a lack of clarity in documentation and discussions are adding much more time to the learning curve and thus slowing my adoption of the framework.  It would perhaps help quite a bit if you had your documents reviewed by someone not as familiar with the framework so that those things non-obvious (to outsiders) could be identified and corrected.  Many of the issues revolve around ambiguity introduced by grammatical constructs that are not as precise as they could be - something a technical-editor (person) could help clear up.  Just my thoughts.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mua sam vui</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1723</link>
		<dc:creator>mua sam vui</dc:creator>
		<pubDate>Tue, 29 Mar 2011 16:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1723</guid>
		<description>&lt;p&gt;thansk for this ! i am having intend to use it for my website&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>thansk for this&#160;! i am having intend to use it for my website</p>]]></content:encoded>
	</item>
	<item>
		<title>By: vedam</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1722</link>
		<dc:creator>vedam</dc:creator>
		<pubDate>Tue, 29 Mar 2011 10:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1722</guid>
		<description>&lt;p&gt;Essentially usefull. Thanx a lot for this.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Essentially usefull. Thanx a lot for this.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: frostbytten</title>
		<link>http://mootools.net/blog/2011/03/28/events-with-mootools-element-class-delegation-and-pseudos/comment-page-1/#comment-1718</link>
		<dc:creator>frostbytten</dc:creator>
		<pubDate>Mon, 28 Mar 2011 20:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://mootools.net/blog/?p=1182#comment-1718</guid>
		<description>&lt;p&gt;Another quick tip, unless I am mistaken: In order for &#039;change&#039; to fire for IE on radio/checkboxes you need the following.&lt;/p&gt;

&lt;p&gt;element.addEvents({&#039;change&#039;: doSomething, &#039;click&#039;: function() { this.blur(); }});&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Another quick tip, unless I am mistaken: In order for &#8216;change&#8217; to fire for IE on radio/checkboxes you need the following.</p>

<p>element.addEvents({&#8216;change&#8217;: doSomething, &#8216;click&#8217;: function() { this.blur(); }});</p>]]></content:encoded>
	</item>
</channel>
</rss>
