Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2002
    Noblesville, IN
    Thanked 0 Times in 0 Posts

    text in one area copied to another window

    Hello All,

    I am trying to use JavaScript (I have no way to use server-side scripts)
    to collect data from a simple HTML form and post it into another form's

    The form is basic (3 textboxes and 15 checkboxes)
    I wish to use a JavaScript to do one of 2 things:

    1. Get the data (like email generation) and insert it into another
    form's textarea (one giant textarea in which the data can be reviewed,
    and used)
    2. Get the data and create a new window containing a textarea filled
    with the results.

    The only reason I need to have the data inserted into a textarea is that
    I have prepared another script to allow users to copy and paste this
    data into work tickets for PC Support. This is an attempt to simplify
    work by creating a yes/no type flowchart which telephone reps can fill
    out (follow) to solve and document each conversation they have via
    telephone tech support. This script will be called via onClick from a

    I realize how much easier this would be via ASP but I have no such
    reasources available. In case I have confused anyone, here is a basic

    Form1 (full of data) -->SUBMIT1 (moves data)-->Form2 (one textarea
    containing Form1 results) -->SUBMIT2 (copies all of textarea to
    Ed Ventura
    Graphic/Web Designer

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Thanked 0 Times in 0 Posts
    its a simple matter...

    textarea 1.where someone types:

    textarea 2. where the same info from textarea 1 goes..


    you didn't say whether or not you wanted all the foms elements in the text box.....if you do...

    on your "onClick" button run thru a fucntion that does something simple..like

    function name(){
    //for the 15 checkboxes assuming you name them
    //generic ..like cb0,cb1,cb2,cb3 etc...
    var cbname=cb;
    var val+i=document.formname[cb+i].value + \n;

    or soemthing like that......let me know how it goes


    Posting Permissions

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