bavander All American 1567 Posts user info edit post |
I've noticed that when you click on one of these buttons, it inserts the crazycode at the end of the editbox. If it is possible, and if javascript will let you, could you make it where it inserts it at the current cursor position. 1/14/2002 11:43:17 AM |
CrazyJ The Boss 2453 Posts user info edit post |
i've looked all through the DOM for IE and netscape. i can't seem to find any property that gives an index of the cursor position. since i don't know the cursor position, i just append it on to the end. if anyone knows how to grab the cursor position of a textarea, speak up! 1/14/2002 2:17:01 PM |
bavander All American 1567 Posts user info edit post |
Yea, I just noticed that myself. my bad.
Actually I found something interesting here that might help. I don't know yet, still lookin at it.
http://vdsluis.servicez.org/vdsluis.net/javascript/cursortext.php
It works on my IE.
[Edited on January 14, 2002 at 3:46 PM. Reason : .] 1/14/2002 3:25:54 PM |
bavander All American 1567 Posts user info edit post |
But it doesn't work on my Konquerer or Mozilla/Netscape. If you use it be sure to use a browser detection script. 1/14/2002 3:56:57 PM |
DirtyGreek All American 29309 Posts user info edit post |
yeah well since these boyeez dont give a shit about netscape that should be fine 1/14/2002 7:13:19 PM |