character count

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

character count

Post 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
Last edited by m2babaey on Tue May 29, 2007 10:21 pm, edited 1 time in total.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Moved to Client Side.
Post Reply