i was suprised not to find this topic anywhere in the forum.. is there anyway without javascript to limit the length of a string that you can enter into a textarea? it would be convenient if the maxlength attribute would work for them but someone decided not to make things that simple
You can check for the length of the textarea's value on the server side if you don't want to do it with javascript.
so than there is no way to restrict the number of characters someone can enter in a textarea without javascript? i would have to wait for the form to be submitted than do the server side check? bushleague, i can't believe that maxlength is not an option for textarea's.. p.s. does anyone else think dungeons and dragons when they're in the design & development forum?
Yes, if maxlength was supported, you could do it easily but I guess you need to do it the hard way. Javascript is not bad though. http://www.quirksmode.org/dom/maxlength.html
I think the best way would be to first code it with a server side language, so after the form is submitted the server side language would count the # of chars in the textarea, and if it was higher than X number, tell them to reduce it. Afterwards, you can then make a real time JS checker (like the ppk one) for people who have JS enabled.