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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Insertion into textarea

    I have a button next to a textarea when they click that button it launchs another window. Now I need another button that will take a value (it will be an html code) close that window, and put that value in the textarea.

    Sort of like how when you click the link button in this wysiwyg editor it pops up a window that asks for some stuff and then inserts it here.

    Any help is much appreciated,
    thanks,
    Jordan

  • #2
    Regular Coder
    Join Date
    Oct 2006
    Posts
    206
    Thanks
    1
    Thanked 0 Times in 0 Posts
    PHP Code:
    <textarea id="textarea"></textarea>
    <
    button onclick="document.getElementById('textarea').value += prompt('Please enter some HTML')">Add HTML</button
    Is that the sort of thing you want, or did you want it to be more complex?
    Last edited by 1212jtraceur; 06-11-2007 at 05:06 PM.

  • #3
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you very much for the quick response!

    that is close to what I need but the problem is what pops up is going to be a form and when the form is submitted they are brought to page 2 (same popup) and the form is processed in then the output is put into the textarea


  •  

    Posting Permissions

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