Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to get the exact caret position in the TextArea HTML control

Reply
Thread Tools

How to get the exact caret position in the TextArea HTML control

 
 
vasu
Guest
Posts: n/a
 
      08-04-2005
Hi Guys,
Please help me, I want to get the exact caret position, in the
TextArea HTML control.
Even if I enter empty lines in the TextArea, I mean just press "Enter"
Key, it should treat as 2 characters, like how Window's EDIT ( MFC
CEdit)control has API to get the information.

regards,
srinivas

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cursor position in textarea? (XY pos, not caret index) ReGenesis0 Javascript 3 09-28-2008 05:46 PM
Limit <textarea> length without losing caret position Álvaro G. Vicario Javascript 7 05-20-2008 01:21 PM
Caret position calculated incorrectly in textarea. j_macaroni@yahoo.com Javascript 1 05-07-2006 10:33 PM
How to set caret position to end of textarea? R. Kangas Javascript 0 01-26-2006 03:21 PM
How do I get the caret position in a textarea? torch Javascript 3 06-20-2004 12:13 PM



Advertisments