smilies insertion

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!

Moderator: General Moderators

Post Reply
User avatar
buddok
Forum Commoner
Posts: 50
Joined: Tue May 25, 2004 2:44 pm

smilies insertion

Post by buddok »

hey well ive got smilies for my shoutbox, to view them u click a link and a lil window opens does anyone no how to make the smilies so taht when they are clicked the correct text is inserted back to my shoutbox message box ?

like the ones used on here wen writing a post but sends to another page
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

generally it's:

Code: Select all

window.opener.formsї'your_form_name'].elementsї'your_shout_box''s_textbox'].value += 'smiley_tag_text';
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

this topic was discussed more in-depth here:

viewtopic.php?t=4945&highlight=smile
Post Reply