Re: Textarea with character count?
Thanks guy! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Textarea-with-character-count-tp4843530p4858058.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Textarea with character count?
There's some easy-to-modify source code for this at http://tinybits.blogspot.com/2009/04/enforce-max-length-on-textareas-and_15.html On Tue, Sep 27, 2011 at 2:34 AM, Magnus Kvalheim mag...@kvalheim.dk wrote: Hi, I wonder in Tapestry world, is there such a component that while user types, it will counts how many characters have the user typed. Alternatively, I would like to know if there is a way to restrict the textarea to a fixed size, say 500 characters. If exceeded, no more text will be allowed. I guess there isn't one ready to use, but with a little bit of JavaScript you can easily write a mixin that does exactly that. ;) I've used this jQuery plugin previously - http://roy-jin.appspot.com/jsp/textareaCounter.jsp . You can specify a fixed number of characters. Works well and has good documentation. Cheers Magnus Kvalheim - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Textarea with character count?
Oh this brings back some bad memories for me. Try doing this with Tapestry 4's Dojo.js Not fun. RANT OFF On Wed, Sep 28, 2011 at 1:58 PM, Bob Harner bobhar...@gmail.com wrote: There's some easy-to-modify source code for this at http://tinybits.blogspot.com/2009/04/enforce-max-length-on-textareas-and_15.html On Tue, Sep 27, 2011 at 2:34 AM, Magnus Kvalheim mag...@kvalheim.dk wrote: Hi, I wonder in Tapestry world, is there such a component that while user types, it will counts how many characters have the user typed. Alternatively, I would like to know if there is a way to restrict the textarea to a fixed size, say 500 characters. If exceeded, no more text will be allowed. I guess there isn't one ready to use, but with a little bit of JavaScript you can easily write a mixin that does exactly that. ;) I've used this jQuery plugin previously - http://roy-jin.appspot.com/jsp/textareaCounter.jsp . You can specify a fixed number of characters. Works well and has good documentation. Cheers Magnus Kvalheim - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Textarea with character count?
Hi, I wonder in Tapestry world, is there such a component that while user types, it will counts how many characters have the user typed. Alternatively, I would like to know if there is a way to restrict the textarea to a fixed size, say 500 characters. If exceeded, no more text will be allowed. I guess there isn't one ready to use, but with a little bit of JavaScript you can easily write a mixin that does exactly that. ;) I've used this jQuery plugin previously - http://roy-jin.appspot.com/jsp/textareaCounter.jsp . You can specify a fixed number of characters. Works well and has good documentation. Cheers Magnus Kvalheim
Textarea with character count?
Hi, I wonder in Tapestry world, is there such a component that while user types, it will counts how many characters have the user typed. Alternatively, I would like to know if there is a way to restrict the textarea to a fixed size, say 500 characters. If exceeded, no more text will be allowed. Any suggestion would be appreciated. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Textarea-with-character-count-tp4843530p4843530.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Textarea with character count?
On Mon, 26 Sep 2011 21:43:38 -0300, TG tapestry...@hotmail.com wrote: Hi, Hi! I wonder in Tapestry world, is there such a component that while user types, it will counts how many characters have the user typed. Alternatively, I would like to know if there is a way to restrict the textarea to a fixed size, say 500 characters. If exceeded, no more text will be allowed. I guess there isn't one ready to use, but with a little bit of JavaScript you can easily write a mixin that does exactly that. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org