caret

Get caret position using jCaret Plugin in IE

I have problem with jCaret plugin in IE. jCaret downloads I want to get the caret position inside a textarea. My code looks like this: $('.myTextArea').click(function(){ var myCaretPos = $(this).caret().end; }); The problem in IE is that I only get correct result if the textarea is only one line, but if there are more than on...

[WPF] Retrieve the End position of the Caret in the TextBox to put the Caret in the next TextBox

How do I find the end position of the Caret in a WPF textbox so I can`t move right anymore with the caret? ...

WPF RichTextBox - get whole word at current caret position

I enabled spelling on my WPF richtextbox and I want to get the misspelled word at current caret position before the context menu with spelling suggestions is displayed. ...

Get caret position in contentEditable div

Hi, I'm finding tons of good, crossbrowser anwers on how to SET the cursor or caret position in a contentEditable DIV, but none on how to GET or find its position... What I want to do is know the position of the caret within this div, on keyup. So, when the user is typing text, I can at any point know its cursor's position within the...

Getting the keyboard cursor location/coordinates in all applications.

Right now I'm using the functions GetCaretPos() and GetGUIThreadInfo() to get the current keyboard cursor/caret coordinates. These work properly in applications like Notepad and Wordpad and return the correct coordinates, but in applications such as Firefox, Thunderbird, and others, the coordinates returned are always 0, 0, no matter whe...