August 07, 2002

New web form control combination
Design Not Found points out a Sprint PCS form that works a little code magic to tell the user how many additional characters they can type into a textarea box. Kind of an interesting use of controls, but the idea that comment or message boxes should have character limits is a bad one. It's usually a sign of lazy programming and/or database design. Of course you usually have to some kind of logical limit, but it should be rather large (e.g. 10K) so that most users will never hit it. Most good databases won't allocate that much empty space in each record - they just store what's entered. Anyway, as DNF points out, the Sprint solution is better than an error message that tells you that you typed too much. Here's some code to steal if you want to make your users nervous about how much they're typing.

Tell me what you think of this blog in 160 characters or less. :-)

No comments: