<?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: Input Incrementer and Decrementer with&#160;MooTools</title> <atom:link href="http://davidwalsh.name/input-incrementer/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/input-incrementer</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: Darkimmortal</title><link>http://davidwalsh.name/input-incrementer#comment-11884</link> <dc:creator>Darkimmortal</dc:creator> <pubDate>Mon, 14 Sep 2009 21:36:40 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11884</guid> <description>What about holding down a button to increase the value? Also it should get progressively faster </description> <content:encoded><![CDATA[<p>What about holding down a button to increase the value? Also it should get progressively faster</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/input-incrementer#comment-11882</link> <dc:creator>David Walsh</dc:creator> <pubDate>Mon, 14 Sep 2009 20:21:02 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11882</guid> <description>@cancelbubble:  I was just having a little fun! :)</description> <content:encoded><![CDATA[<p>@cancelbubble:  I was just having a little fun! :)</p> ]]></content:encoded> </item> <item><title>By: cancelbubble</title><link>http://davidwalsh.name/input-incrementer#comment-11881</link> <dc:creator>cancelbubble</dc:creator> <pubDate>Mon, 14 Sep 2009 20:09:05 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11881</guid> <description>Don&#039;t worry about being like css-tricks (or any other blog/author), you&#039;re doing just fine on your own.</description> <content:encoded><![CDATA[<p>Don&#8217;t worry about being like css-tricks (or any other blog/author), you&#8217;re doing just fine on your own.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/input-incrementer#comment-11880</link> <dc:creator>David Walsh</dc:creator> <pubDate>Mon, 14 Sep 2009 15:56:37 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11880</guid> <description>@Darkimmortal:  I guess...&quot;class&quot; is a reserved word.  The alternative would be what?  &quot;klass&quot;.  I prefer quotes.  Also note that JSON requires quotes on everything for this reason.</description> <content:encoded><![CDATA[<p>@Darkimmortal:  I guess&#8230;&#8221;class&#8221; is a reserved word.  The alternative would be what?  &#8220;klass&#8221;.  I prefer quotes.  Also note that JSON requires quotes on everything for this reason.</p> ]]></content:encoded> </item> <item><title>By: Darkimmortal</title><link>http://davidwalsh.name/input-incrementer#comment-11879</link> <dc:creator>Darkimmortal</dc:creator> <pubDate>Mon, 14 Sep 2009 15:49:38 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11879</guid> <description>Lol, design fail by Mootools. Requiring quotes around class ftl</description> <content:encoded><![CDATA[<p>Lol, design fail by Mootools. Requiring quotes around class ftl</p> ]]></content:encoded> </item> <item><title>By: Adriaan</title><link>http://davidwalsh.name/input-incrementer#comment-11878</link> <dc:creator>Adriaan</dc:creator> <pubDate>Mon, 14 Sep 2009 15:27:20 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11878</guid> <description>not bad, but those damn ugly + and - buttons gave me such a fright :0</description> <content:encoded><![CDATA[<p>not bad, but those damn ugly + and &#8211; buttons gave me such a fright :0</p> ]]></content:encoded> </item> <item><title>By: olivier</title><link>http://davidwalsh.name/input-incrementer#comment-11877</link> <dc:creator>olivier</dc:creator> <pubDate>Mon, 14 Sep 2009 14:20:30 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11877</guid> <description>oops, in my previous comment, I meant val &gt;= 1 , not val &gt;= 0</description> <content:encoded><![CDATA[<p>oops, in my previous comment, I meant val &gt;= 1 , not val &gt;= 0</p> ]]></content:encoded> </item> <item><title>By: olivier</title><link>http://davidwalsh.name/input-incrementer#comment-11876</link> <dc:creator>olivier</dc:creator> <pubDate>Mon, 14 Sep 2009 14:19:21 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11876</guid> <description>The test in the minus function should be val &gt;= 0, because with != , if I type -1 in the input and press -, it keeps going down. I know it deos not really matter since the user can keep typing whatever they want, unless you make the input readonlyAnyway for the minus button function, you optimize it a little with Math.max :input.value = Math.max(0,(input.value.toInt()-1));I am just nitpicking. You can also set a maximum value as well with the plus button using Math.min</description> <content:encoded><![CDATA[<p>The test in the minus function should be val &gt;= 0, because with != , if I type -1 in the input and press -, it keeps going down. I know it deos not really matter since the user can keep typing whatever they want, unless you make the input readonly</p><p>Anyway for the minus button function, you optimize it a little with Math.max :</p><p>input.value = Math.max(0,(input.value.toInt()-1));</p><p>I am just nitpicking. You can also set a maximum value as well with the plus button using Math.min</p> ]]></content:encoded> </item> <item><title>By: Dimitar Christoff</title><link>http://davidwalsh.name/input-incrementer#comment-11873</link> <dc:creator>Dimitar Christoff</dc:creator> <pubDate>Mon, 14 Sep 2009 13:56:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3616#comment-11873</guid> <description>eheh, handy but too late for my needs...i did have to do this only 4-5 days ago - but by relation. 4 input boxes, all numeric to increment/decrement but with the sum of the values of inputs 2,3,4 to remain less than or equal to the value of input 1. ended up with a piece of code that could be quite useful (including attachable +/- controls etc) - if i could figure how to refactor it in a way that can be reused ...btw, toInt on value &quot;&quot; results in a NaN so trap when users have deleted the values by hand </description> <content:encoded><![CDATA[<p>eheh, handy but too late for my needs&#8230;</p><p>i did have to do this only 4-5 days ago &#8211; but by relation. 4 input boxes, all numeric to increment/decrement but with the sum of the values of inputs 2,3,4 to remain less than or equal to the value of input 1. ended up with a piece of code that could be quite useful (including attachable +/- controls etc) &#8211; if i could figure how to refactor it in a way that can be reused &#8230;</p><p>btw, toInt on value &#8220;&#8221; results in a NaN so trap when users have deleted the values by hand</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.008 seconds using disk: basic
Object Caching 746/746 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 03:43:13 -->
