Questions tagged [charactercount]
72 questions
2
votes
3 answers
jquery validate with a character counter plugin
I have a page that has fields that are validated using jquery-validate plugin, and wanted to include a twitter like character counter on the fields to see how many chars are left
Here is my…

Jay Rizzi
- 4,196
- 5
- 42
- 71
2
votes
1 answer
How to get the number of characters (as opposed to the number of bytes) of a text in Delphi?
I have a Delphi 7 application where I deal with ANSI strings and I need to count their number of characters (as opposed to the number of bytes). I always know the Charset (and thus the code page) associated with the string.
So, knowing the Charset…

jedivader
- 828
- 10
- 23
2
votes
4 answers
How to count characters in RichTextBox using C#
I am new to programming and having problems making a simple code for character counter for a button. I've somehow managed to code a line together that actually counts words. here it is:
private void button_add_Click(object sender, EventArgs e)
{ …

User_T
- 247
- 3
- 8
- 18
2
votes
1 answer
How can I retrieve the character position of a specific character in a file using VI?
I need to retrieve the character position of a character in a file. How can I do this, using Vi?

ZakTaccardi
- 12,212
- 15
- 59
- 107
2
votes
2 answers
jQuery textarea character count (including carriage return)
I have a jQuery function wherein I count the characters left on keyup.
function charactersLeft(e) {
var textArea = e.data.textArea,
charLeft = e.data.maxLength - textArea.val().length,
message = e.data.messageContainer;
…

dork
- 4,396
- 2
- 28
- 56
2
votes
1 answer
jQuery.validate killing character counter after it fires
After extensive searching on this matter, I have been unable to find an answer on my own for an issue I'm experiencing where the jQuery validation plugin is cannibalizing a character count plugin I'm using for an SMS-via-PHP form.
If you get into…

Geoff Colbath
- 129
- 1
- 3
1
vote
1 answer
Jquery – Count characters on single line in contentEditable DIV
Is it possible at all to count the number of characters for a single line. Let's say that we have a paragraph of 5 lines, is it possible to count the number of characters of each line.
Everything I was able to find so far counts the number of…

user495915
- 189
- 1
- 1
- 11
1
vote
1 answer
Toad: Count characters in SQL statement
Toad for Oracle 12:
I'm working in a system that has an unfortunate limitation where an SQL query's FROM clause can only have up to 1000 characters (including spaces). This becomes a problem when the FROM clause has a lengthy subquery in it (> 1000…

User1974
- 276
- 1
- 17
- 63
1
vote
4 answers
Find n longest words in string efficiently
We can find the longest word in a string like this:
str.split(" ").sort(function(a, b) {return b.length - a.length})[0];
How can one find the top n longest words efficiently? For example, how can I extract the top 3 longest words, not just the…

Cybernetic
- 12,628
- 16
- 93
- 132
1
vote
2 answers
C Programming; Word, Character and Line Count K&R 1-11
#include
#define YES 0
#define NO 0
int main()
{
int c, nl, nc, nw, tab;
nl = 0;
nc = 0;
nw = 0;
tab = NO;
while ((c = getchar()) != EOF)
{
++nc;
if (c == '\n')
++nl;
if (c…

chriscokeee
- 13
- 3
1
vote
3 answers
How to show character counter in a React-quill
I would like to add a character counter on my React Quill.
At the moment I have a character limiter of 950.
The problem is that the user must be aware that the number of characters must not be more than 950, thus the character counter
I've tried…

maria
- 363
- 2
- 5
- 14
1
vote
1 answer
Twitter-text count for iOS is not working properly
I have already referred this link https://github.com/twitter/twitter-text/tree/master/objc but I think this is not updated. It still shows twitter-text with 140 characters and also it is in objective-c. It do not provide proper count of some special…

Dhruvi
- 1,971
- 2
- 10
- 18
1
vote
4 answers
How can I show in UI the limit of character and how much was digited for the user? Android Java
How can I do that?
I mean showing the limit of character and how much was digited on the input text.

noone000
- 147
- 1
- 10
1
vote
2 answers
JavaScript specific character counting
I am having trouble with a specific peice of javascript. my code should find a specific letter in the textarea, chosen and writen by a person. I need help counting my specific characters.
function search(){
var s=…

Some Random Awesome Guy
- 43
- 1
- 7
1
vote
0 answers
Android - How to show character count on top of EditText...?
In my application i am showing live character count below a TextInputLayout, using a class.
This is the class
public class CharacterCountErrorWatcher
implements TextWatcher
{
private final TextInputLayout mTextInputLayout;
private final…

Akhil Soman
- 2,077
- 2
- 17
- 30