PDA

View Full Version : Duplicating Smilie Insert Functionality


analog2112
07-07-2007, 07:09 PM
Hi,

I've been trying to find some help on creating a link that when clicked will insert a value into the textarea of the message. Pretty much exactly how the smilies work ('m not looking to do bbcode).

The link can be an href or div or whatever but I really should work with both the standard and WYSIWYG.

I tried a simply href link, for example


... onclick="document.getElementById('vB_Editor_001_textarea'). value += 'test';">..


Hoping that would insert "test" into the message area, but no luck.

I looked at all the JS that creates the smilies container to see if I could piggy back off of that but my JS isn't that good for starters and it also looks like I would have to hack into that JS file, which is something I would rather not do.

Can anyone help?

Thanks!!

analog2112
07-13-2007, 12:34 PM
BUMP

Isn't there anything helpful anyone can pass along??