Gazing into my crystal ball I observed Anz <> writing
in news:af6ba88c-7fe7-4eab-b508-:
>
> Thanks, i just want to limit the number of lines in the text
> area, ...not the chars
Please understand there really is no way to count LINES, only characters.
Why? Because the width of a character can change with the UI. Ever had a
word document that was one page and a second page with a little bit of
text? To fit it all on one page, Word first reduces the font size. So, you
see, you really cannot use lines.
Additionally, most people are used to see _characters_. What you _can_ do
is state something like:
Maxium characters is 200, about 4 lines. Then include javascript that
counts the characters and presents how many are left. Of course, you will
have to check the amount of characters server side.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share