Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Dynamically resizing a TEXTAREA


Message #1 by "Dave Justin" <daveonsax@y...> on Sat, 14 Dec 2002 23:24:07
Hi everyone.

I've got a webapp I'm working on with a form which has a few Textarea 
objects.  What I'd like to do is resize the textarea by adding or 
subtracting the rows property by one each time a line is filled in or 
erased, thus preventing the scrollbar from ever being enabled on them.

Is there any way to tell when the scrollbar on a textarea has become 
enabled (ie, *not* greyed out)?  Or to tell how many lines are used in a 
textarea?  If possible, I'd like to retain a varying-width font in the 
textarea.  And I'd also like to continue using wrap='soft' on that tag.

Any ideas or suggestions?
Thanks!

  Return to Index