1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    41
    Vote Rating
    0
    edfimasa is on a distinguished road

      0  

    Default How to get Textarea Absolute left and top CURSOR position

    How to get Textarea Absolute left and top CURSOR position


    Hi.

    I'm trying to make a way to show up a panel at the position of the textarea cursor, for some sort of auto complete app on a textarea.

    Do you have any idea how to get absolute left, and top of the cursor?

    Anyone done this?

    Cheers.

  2. #2
    Ext User
    Join Date
    Apr 2009
    Posts
    2
    Vote Rating
    0
    kamidan is on a distinguished road

      0  

    Lightbulb


    Maybe you could specify a font-size, line-height and use a fixed-size font (like courrier). This way, you would be able to calculate or at least approximate the position.

    For finding the position of the cursor I just found this thread:
    http://www.teria.com/~koseki/memo/xb...n/example.html

    - kamidan

Thread Participants: 1