Page 1 of 1

character count

Posted: Tue May 29, 2007 2:09 pm
by m2babaey
Hi
Please look at this form. or you don't need to if you can get what i mean.
I need that small box to count the number of characters ( but not spaces or line breaks) to alert users if their article contains less than 1000 characters.
note: i'm going to act vice versa contact forms. starting counting characters from 1 and then going up

Posted: Tue May 29, 2007 2:16 pm
by superdezign
This is done using JavaScript.

You can look at the code PayPal uses. I think they use onselect and onkeydown to determine when text is being added or deleted.

Posted: Tue May 29, 2007 5:07 pm
by RobertGonzalez
Moved to Client Side.