On 7/20/05, Larry Meadors <[EMAIL PROTECTED]> wrote:
> Yep, not an option in HTML, gotta javascript it, or catch it on the server.
> 
> On 7/20/05, Mark Benussi <[EMAIL PROTECTED]> wrote:
> > Sadly, JavaScript I am afraid.
> > From: Vijay K Anand [mailto:[EMAIL PROTECTED]
> > How to control char maxlength in <html:textarea/> ?

I'd say both, javascript for a nice user experience and server side
for safety. One because as a matter of good practice you should never
trust anything to have been properly validated on the browser and two
because testing the number of characters in textareas can be error
prone. I forget which one but either Mozilla or IE has given me length
counts in javascript which differ from the String length by the time
the value is one the server - basically a CR versus CR/LF issue.

Steve
-- 
"A witty saying proves nothing."  -- Voltaire

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • Re: TextArea Steve Bosman

Reply via email to