I am trying to build a username autocomplete feature in my webapp so when you type the @
symbol a little popup with an arrow appears point at your @
sign and it filters down as you continue to type the username (and clicking finishes it off).
I can do most of this, however the major part I am struggling with is getting some coordinates in x and y that I can use to position the popover...
For reference here is a JSFiddle Fiddle I am working on.. http://jsfiddle.net/tarnfeld/Xefdb/3/
To get the main functionality working I have a little red span that I'd like to move to the caret position (the little | symbol as your typing) so I can further extend this to be awesome autocomplete love.
Any help would be appreciated :)
Thanks!!
PS: I have found answers like this Twitter-style autocomplete in textarea but they dont pop up under the @ char position...