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 > >