PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hey..
how can i add a code() at current cusor location in a a text area?
i know it would have to be done with java and later on i will i have to use ereg_replace, but that's for later on.
i don't think you can add at the current cursor location. only one thing can be 'focused' at a time, and when you click on the emoticon, you lose focus in the textbox, and therefore lose the cursor location info. all message boards i've seen always append to the end of text block. check the source for phpBB or YaBB for such scripts.