javascript Programming Glossary: ichar
Display DIV at Cursor Position in Textarea http://stackoverflow.com/questions/128342/display-div-at-cursor-position-in-textarea charWidth parseFloat this .innerWidth charsPerLine var iChar 0 var iLines 1 var sWord '' var oSelection this .getSelection.. var aLines for var w in aLetters if aLetters w n iChar 0 aLines.push w sWord '' else if aLetters w var wordLength.. aLetters w var wordLength parseInt sWord.length if bGTE iChar wordLength charsPerLine bGTE iChar wordLength charsPerLine..
|