mootools ResizingTextArea Component
A little while ago I saw a post by Richard McMahon regarding his post on ResizingTextArea with Prototype. However, recently I’ve grown rather fond of mootools.
As such, I’ve whipped together a brief javascript class to use mootools functions and classes, as well as added a bit more functionality.
The requirements are as follows:
- Moo.js
- Function.js
- Array.js
- String.js
- Element.js
You can choose your build here.
There are two methods to initialize the class.
The first is to add an onfocus.
Or iterate through all textareas and add an event listener:
A demonstration can be found here:
All comments, suggestions and death threats are welcome.
Fanatic programmer, obsessive technophile, serial entrepreneur and Web 2.0 enthusiast. Zed23.com is the personal blog of Ryan Brooks, a Web Application Developer out of Calgary, Alberta.
David
February 11th, 2007 at 5:49 am
Nice! This will come in handy.