PDA

View Full Version : TextArea cursor position (SOLVED)



steve1964
24 Aug 2011, 5:18 AM
Hi, i've searched for a solution, i found some codes for Ext JS, but none of them worked with sencha touch.
I need to know the cursor position of a textareafield, any suggestion would be apreciated, thanks.

steve1964
26 Aug 2011, 1:51 AM
Solved!

In the keyup and blur listener of the textareafield:

var cursorPos = this.fieldEl.dom.selectionStart;