SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    Not Bad, eh? Justin Sampson's Avatar
    Join Date
    Aug 2000
    Location
    N.S., Canada
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,
    I am looking for a Javascript that can insert text into a textox in another window.

    It's going to be used as for smilies on my forum.

    There will be a little link and when you click it a window will open and show all the smilies and when you click on a smilie it will insert the right smily code into the post.

    Anyone know of a code like this?

    Thanks,
    Justin Sampson

  2. #2
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey,

    From the popup page, you could use something like:

    <a href="javascript:void(0)" onclick="window.opener.window.document.formName.textAreaName.value+=':-)'">:-)</a>

    aDog

  3. #3
    Not Bad, eh? Justin Sampson's Avatar
    Join Date
    Aug 2000
    Location
    N.S., Canada
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks

    Is the only thing I have to change in that formName and textAreaName?

    Thanks again,
    Justin Sampson

  4. #4
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeahm you change that, and it should work.

    aDog


Bookmarks

Posting Permissions

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