Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Clicking image write text to inputbox

    I have a chat application going, and just like the messageboard here, where you click the emoticons on the left of the message and it inserts the text, I want to do the same thing. The only difference is my emoticon box is in a separate window (popUp via javascript). So far I tried this:

    <a href="#" onClick="parent.document.sendreceive.message.value=':-D'; parent.document.sendreceive.message.focus()"><img border=0 src=chats/emoticons/biggrin.gif alt=":-D"></a>

    Form name is "sendreceive"
    Text area name is "message"

    With no luck.

    Any ideas?

  • #2
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nevermind I figured it out. The answer was to use "opener" instead of "parent"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •