RE: How to dectet the word count/character count in an DIV or any oth
Tech-Archive recommends: Fix windows errors by optimizing your registry
"susan" wrote:
For now, I use the innerText,and calc the length. but it's to slow, Is there
an native way to do it?
Slow??? But length of either a string or an array *is* a "native way", and
they give you the character count and, when combined with split, the word
count.
That is:
charCount = foo.innerHTML.length;
wordCount = foo.innerHTML.split( /\s/ ).length + 1;
If that's too slow, I dunno what you can do better.
.
Relevant Pages
- Re: AMC: What Would You Do?
... > Susan Barnett wrote: ... which intertwines plots with character. ... there are tv writers who can mix plot and character and leave ... (rec.arts.tv.soaps.abc) - Re: ATWT-ALLISONS FATHER-HELP PLEASE
... BORING storyline. ... Dr. Larry McDermott was a young peditrician who came to Oakdale ... he became enamored of Susan and persued her. ... Then the time came when Ed Fry was to leave, or the character written ... (rec.arts.tv.soaps.cbs) - Re: Belles of St Trinians and other thoughts on the companions of The Doctor
... Anne Ford as the French teacher. ... of Susan on Doctor Who really does illustrate the versatility of her ... Susan's character changed from story to ... Whilst we're on the subject of Susan, Carole Ann Ford made some ... (rec.arts.drwho) - Re: Belles of St Trinians and other thoughts on the companions of The Doctor
... Anne Ford as the French teacher. ... of Susan on Doctor Who really does illustrate the versatility of her ... Susan's character changed from story to ... of the First Doctor and the age of William Hartnell at that time. ... (rec.arts.drwho) - Re: Anybody Watch or Record The Dresden FilesOriginal Pilot 3AM-5AM EST
... Yes, in the books, Susan is definitely a recurring character, and some ... Susan and Murphy actresses. ... although I picture the Susan character as much better looking ... I think we all agreen that the perfect Murphy actress is Denny Dillon. ... (rec.arts.sf.tv) |
|