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
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
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.phpIt works on my IE.[Edited on January 14, 2002 at 3:46 PM. Reason : .]
1/14/2002 3:25:54 PM
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
yeah well since these boyeez dont give a shit about netscape that should be fine
1/14/2002 7:13:19 PM