<?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:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: MooTools 1.2 Class&#160;Template</title> <atom:link href="http://davidwalsh.name/mootools-12-class-template/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/mootools-12-class-template</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 23 May 2012 04:02:29 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Avi</title><link>http://davidwalsh.name/mootools-12-class-template#comment-20148</link> <dc:creator>Avi</dc:creator> <pubDate>Wed, 22 Sep 2010 08:14:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-20148</guid> <description>Hi,
This is the tutorial what I am looking for.
Before some days I have tried to contact you regarding this point. but no reply from your side.
But after all thanks for this post.
Thanks
Avi</description> <content:encoded><![CDATA[<p>Hi,<br
/> This is the tutorial what I am looking for.<br
/> Before some days I have tried to contact you regarding this point. but no reply from your side.<br
/> But after all thanks for this post.<br
/> Thanks<br
/> Avi</p> ]]></content:encoded> </item> <item><title>By: Javier</title><link>http://davidwalsh.name/mootools-12-class-template#comment-19801</link> <dc:creator>Javier</dc:creator> <pubDate>Wed, 08 Sep 2010 22:08:29 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-19801</guid> <description>Buensimo el ejemplo, sin embargo los métodos no se disparan a menos que agregues
this.fireEvent(&#039;yourMethod&#039;); donde &quot;yourMethod&quot; es el nombre de tu evento.
Ejemplo.-show: function() {
alert(&#039;hacer algo&#039;);
/*al final de la instrucción*/
this.fireEvent(&#039;show&#039;);
},Esto es útil cuando quieres agregar codigo personalizado al ejecutar dicho evento.</description> <content:encoded><![CDATA[<p>Buensimo el ejemplo, sin embargo los métodos no se disparan a menos que agregues<br
/> this.fireEvent(&#8216;yourMethod&#8217;); donde &#8220;yourMethod&#8221; es el nombre de tu evento.<br
/> Ejemplo.-</p><p>show: function() {<br
/> alert(&#8216;hacer algo&#8217;);<br
/> /*al final de la instrucción*/<br
/> this.fireEvent(&#8216;show&#8217;);<br
/> },</p><p>Esto es útil cuando quieres agregar codigo personalizado al ejecutar dicho evento.</p> ]]></content:encoded> </item> <item><title>By: Samuel M.</title><link>http://davidwalsh.name/mootools-12-class-template#comment-15101</link> <dc:creator>Samuel M.</dc:creator> <pubDate>Thu, 07 Jan 2010 19:26:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-15101</guid> <description>I have been using mootools for a little bit, and I really like it.Thanks for the tutorials, they&#039;re great... Keep them coming.Samuel M.</description> <content:encoded><![CDATA[<p>I have been using mootools for a little bit, and I really like it.</p><p>Thanks for the tutorials, they&#8217;re great&#8230; Keep them coming.</p><p>Samuel M.</p> ]]></content:encoded> </item> <item><title>By: Keijo</title><link>http://davidwalsh.name/mootools-12-class-template#comment-9178</link> <dc:creator>Keijo</dc:creator> <pubDate>Sun, 10 May 2009 10:23:44 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-9178</guid> <description>Thanks for this. For some reason I&#039;ve been using it quite a lot. Simple things are usually best!One thing I noticed is that Dom Ready is missing ); at the end. So you could add that so it does not confuse newcomers with errors if they use this.</description> <content:encoded><![CDATA[<p>Thanks for this. For some reason I&#8217;ve been using it quite a lot. Simple things are usually best!</p><p>One thing I noticed is that Dom Ready is missing ); at the end. So you could add that so it does not confuse newcomers with errors if they use this.</p> ]]></content:encoded> </item> <item><title>By: Crispijn</title><link>http://davidwalsh.name/mootools-12-class-template#comment-2688</link> <dc:creator>Crispijn</dc:creator> <pubDate>Tue, 12 Aug 2008 16:00:25 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-2688</guid> <description>I&#039;m not very familiar with the JavaScript/moo syntax so I&#039;m still struggling with your suggestion with the this.fireEventHow do I implement this? Where to I leave the &quot;e&quot; variable witch points to the element I would like to change the opacity? The mootools docs couldn&#039;t give me a right example...var fadeButtons = new Class({Implements: [Options],options: {
maxopacity: 1,
minopacity: 0
},initialize: function(options){
this.setOptions(options),
this.start()
},//start the button events
start: function(){var list = $$(&#039;#buttons div img&#039;);list.each(function(e) {this.e.fireEvent(&#039;mouseenter&#039;);//OLD HABBITS
/*e.addEvent(&#039;mouseenter&#039;, function(){
e.fade(this.options.minopacity);
});e.addEvent(&#039;mouseleave&#039;, function(){
e.fade(this.options.maxopacity);
});*/
});},
});Could you give me a kick in the right direction? Thanks anyway!Crispijn,
The Netherlands</description> <content:encoded><![CDATA[<p>I&#8217;m not very familiar with the JavaScript/moo syntax so I&#8217;m still struggling with your suggestion with the this.fireEvent</p><p>How do I implement this? Where to I leave the &#8220;e&#8221; variable witch points to the element I would like to change the opacity? The mootools docs couldn&#8217;t give me a right example&#8230;</p><p>var fadeButtons = new Class({</p><p> Implements: [Options],</p><p> options: {<br
/> maxopacity: 1,<br
/> minopacity: 0<br
/> },</p><p> initialize: function(options){<br
/> this.setOptions(options),<br
/> this.start()<br
/> },</p><p> //start the button events<br
/> start: function(){</p><p> var list = $$(&#8216;#buttons div img&#8217;);</p><p> list.each(function(e) {</p><p> this.e.fireEvent(&#8216;mouseenter&#8217;);</p><p> //OLD HABBITS<br
/> /*e.addEvent(&#8216;mouseenter&#8217;, function(){<br
/> e.fade(this.options.minopacity);<br
/> });</p><p> e.addEvent(&#8216;mouseleave&#8217;, function(){<br
/> e.fade(this.options.maxopacity);<br
/> });*/<br
/> });</p><p> },<br
/> });</p><p>Could you give me a kick in the right direction? Thanks anyway!</p><p>Crispijn,<br
/> The Netherlands</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/mootools-12-class-template#comment-2679</link> <dc:creator>david</dc:creator> <pubDate>Tue, 12 Aug 2008 01:58:36 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-2679</guid> <description>&lt;p&gt;@Crispjin:  Instead of e.addEvent(&#039;mouseenter&#039;,function() { });, you may want to consider adding a &quot;mouseenter&quot; event to the class and replace the above with &quot;this.fireEvent(&#039;mouseenter&#039;);&quot;.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Crispjin:  Instead of e.addEvent(&#8216;mouseenter&#8217;,function() { });, you may want to consider adding a &#8220;mouseenter&#8221; event to the class and replace the above with &#8220;this.fireEvent(&#8216;mouseenter&#8217;);&#8221;.</p> ]]></content:encoded> </item> <item><title>By: Crispijn</title><link>http://davidwalsh.name/mootools-12-class-template#comment-2678</link> <dc:creator>Crispijn</dc:creator> <pubDate>Mon, 11 Aug 2008 21:49:12 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-2678</guid> <description>Hi David,I&#039;m struggling with my first mootools (1.2) class now and I have a question about the options. How do I use them in my class?For example:$(e).addEvent(&#039;mouseenter&#039;, function(){
e.fade(this.options.minopacity());
});This gives an error:  this.options is undefined.But when I initialize I also set the options withinitialize: function(options){
this.setOptions(options),
this.start(),
console.log(&#039;Buttons ready to hover...&#039;);
},Maybe you&#039;ve got the answer for me...Thanks a lot and keep up the good (mootools) work!</description> <content:encoded><![CDATA[<p>Hi David,</p><p>I&#8217;m struggling with my first mootools (1.2) class now and I have a question about the options. How do I use them in my class?</p><p>For example:</p><p>$(e).addEvent(&#8216;mouseenter&#8217;, function(){<br
/> e.fade(this.options.minopacity());<br
/> });</p><p>This gives an error:  this.options is undefined.</p><p>But when I initialize I also set the options with</p><p>initialize: function(options){<br
/> this.setOptions(options),<br
/> this.start(),<br
/> console.log(&#8216;Buttons ready to hover&#8230;&#8217;);<br
/> },</p><p>Maybe you&#8217;ve got the answer for me&#8230;</p><p>Thanks a lot and keep up the good (mootools) work!</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/mootools-12-class-template#comment-2399</link> <dc:creator>david</dc:creator> <pubDate>Wed, 23 Jul 2008 11:30:58 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-2399</guid> <description>&lt;p&gt;@Imzyos:  I don&#039;t extend other classes much.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Imzyos:  I don&#8217;t extend other classes much.</p> ]]></content:encoded> </item> <item><title>By: Imzyos</title><link>http://davidwalsh.name/mootools-12-class-template#comment-2398</link> <dc:creator>Imzyos</dc:creator> <pubDate>Wed, 23 Jul 2008 06:19:23 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-2398</guid> <description>What about add Extends?</description> <content:encoded><![CDATA[<p>What about add Extends?</p> ]]></content:encoded> </item> <item><title>By: Imzyos</title><link>http://davidwalsh.name/mootools-12-class-template#comment-2397</link> <dc:creator>Imzyos</dc:creator> <pubDate>Wed, 23 Jul 2008 04:20:45 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=318#comment-2397</guid> <description>Very nice snippet</description> <content:encoded><![CDATA[<p>Very nice snippet</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
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.011 seconds using disk: basic
Object Caching 805/806 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 05:52:39 -->
