Page 2 of 2

Re:Online Forms

Posted: Sun Apr 18, 2004 6:25 am
by Neo
how do i limit the number of characters entered in TEXTBOX and TEXTAREA elements of a webpage.
I tried using the maxlength="value" for TEXTBOX but IE's autocomplete easily filled in the text with size greater than the specified max value.
As for the TEXTAREA element the 'maxlength' does'nt even affect it.
So is it best to do this (at the client side) with Javascript? (Of course the server side script will have to check for this again)

Re:Online Forms

Posted: Mon Apr 19, 2004 8:01 pm
by Neo
Any ideas?

Re:Online Forms

Posted: Mon Apr 19, 2004 8:25 pm
by ark
I'm not sure what the best way to handle that is. Technically, that could be viewed as a bug in Internet Explorer (even though it's a documented aspect of the text box in Windows).

Since you're planning on doing server-side checking in either case, it's up to you if you want to try to use a JavaScript client-side solution. It is generally better to prevent errors than to report them, so you may want to at least give the client-side thing a try.

Re:Online Forms

Posted: Tue May 11, 2004 11:35 am
by Neo
Is it possible to have 2 submit buttons (type="submit" not ordinary ones) for a single form? Each for a different purpose? Just asking no real reason.