You could insert a dummy element, and move this after the cursor at every key press. This way you can get the position of that element instead. Dont know if this will affect the performance, but worth a try.
try subtracting the scrolling position (scrolltop & scrollleft). This will guarantee your tooltip remains inside the editor, but you still need to figure out a way to get the screenX and screenY relative to the parent window.
Re: Cursor (not mouse) position
Re: Cursor (not mouse) position
I find that hard to believe...there is got to be a way to determine the x,y position. ..
Re: Cursor (not mouse) position
Re: Cursor (not mouse) position
I want to create it right underneath the cursor position and have it move to the right as the user types
Re: Cursor (not mouse) position
Gary,
have you had a chance to look at this yet?
anyone?
Re: Cursor (not mouse) position
Re: Cursor (not mouse) position
Re: Cursor (not mouse) position
Re: Cursor (not mouse) position
Re: Cursor (not mouse) position
try subtracting the scrolling position (scrolltop & scrollleft). This will guarantee your tooltip remains inside the editor, but you still need to figure out a way to get the screenX and screenY relative to the parent window.
cheers
yamayra1
Re: Cursor coordinates X,Y (SOLVED)
This example takes into account the IFrame position and also the scrolling position (left/right)
Please post any concerns and/or comments you may have.
Regards,
adico