malaiselvan - 12:33 pm on Aug 26, 2013 (gmt 0)
We are implementing a character count program. The below will explain what we are trying to achieve.
In this form we have a textarea and a counter box. The idea is to whenever a user types a character the total typed characters needs to be displayed in the counter box.
Each character has its own count value. For example the character 'a' has 1 count value and 'b' might have 2 count value. A table is created in MySQL and this mapping has been stored there.
So, whenever a user types a character in the text area the typed character needs to be passed via AJAX to PHP and do the count and the same needs to be updated in the counter box. We also need to care about deleting characters and pasting a value directly to the text box.
Is there any decent solution to achieve this? Any ideas?