[CLOSED] Cursor position

  1. #1

    [CLOSED] Cursor position

    Coolite/Ext.Net has a method to get the cursor position in a textfield? Or something similar to createTextRange or selectionStart, so that i can implement it?
    Last edited by Daniil; Apr 01, 2011 at 1:34 PM. Reason: [CLOSED]
  2. #2
    Hi Pablo,

    Well, as I know there are no wrappers for these things in Ext.Net.

    You could deal with dom directly.

    To determine cursor position or/and start and end selection, please use
    TextField1.el.dom.selectionStart
    TextField1.el.dom.selectionEnd
    Also you can be interested in
    http://dev.sencha.com/deploy/dev/docs/?class=Ext.form.TextField&member=selectText
    You could inspect .selectText() to see how it's implemented.

    Also there is a lot of js examples how to deal with selection on the internet, for example:
    http://help.dottoro.com/ljtfkhio.php

Similar Threads

  1. Replies: 2
    Last Post: Mar 19, 2012, 12:08 PM
  2. Replies: 11
    Last Post: Feb 29, 2012, 4:57 PM
  3. Replies: 5
    Last Post: Feb 28, 2012, 12:23 PM
  4. [CLOSED] Cursor bug in IE9
    By Pablo_Azevedo in forum 1.x Premium Help
    Replies: 2
    Last Post: Jun 06, 2011, 6:15 PM
  5. [CLOSED] Messagebox prompt set cursor position to end
    By jchau in forum 1.x Premium Help
    Replies: 5
    Last Post: Jan 20, 2010, 12:40 AM

Tags for this Thread

Posting Permissions