textboxes from another window???

Discussion in 'Javascript' started by Samir, Aug 27, 2004.

  1. Samir

    Samir Guest

    1. Here is a form on the first page

    <form method="POST" name="originalwindow" name="form1">
    <p><input type="text" name="T1" size="20"></p>
    <p><input type="button" value="Submit" name="B1" onclick="This event opens
    the new window"><input type="reset" value="Reset" name="B2"></p>
    </form>

    2. When you click the submit it opens a new window with this form

    <form method="POST" name="openwindowform" name="form2">
    <p><input type="text" name="T1" size="20"></p>
    <p><input type="button" value="Submit" name="B1"
    onclick="savenow()"><input type="reset" value="Reset" name="B2"></p>
    </form>


    <script language="javascript">
    fucntion savenow(){
    window.opener.form1.T1.value = form2.T1.value

    form.submit()
    }
    </script>

    3. is this correct at all???
    Samir, Aug 27, 2004
    #1
    1. Advertising

  2. Samir

    Samir Guest

    Never mind, my found the errors of my ways, I had two form names for the
    forms.

    "Samir" <> wrote in message
    news:gZKXc.59386$...
    > 1. Here is a form on the first page
    >
    > <form method="POST" name="originalwindow" name="form1">
    > <p><input type="text" name="T1" size="20"></p>
    > <p><input type="button" value="Submit" name="B1" onclick="This event

    opens
    > the new window"><input type="reset" value="Reset" name="B2"></p>
    > </form>
    >
    > 2. When you click the submit it opens a new window with this form
    >
    > <form method="POST" name="openwindowform" name="form2">
    > <p><input type="text" name="T1" size="20"></p>
    > <p><input type="button" value="Submit" name="B1"
    > onclick="savenow()"><input type="reset" value="Reset" name="B2"></p>
    > </form>
    >
    >
    > <script language="javascript">
    > fucntion savenow(){
    > window.opener.form1.T1.value = form2.T1.value
    >
    > form.submit()
    > }
    > </script>
    >
    > 3. is this correct at all???
    >
    >
    >
    Samir, Aug 27, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Angel.Net
    Replies:
    1
    Views:
    343
    =?Utf-8?B?Q3JhaWc=?=
    Jun 15, 2005
  2. =?Utf-8?B?cnQ=?=
    Replies:
    2
    Views:
    948
    =?Utf-8?B?cnQ=?=
    Jun 30, 2005
  3. gaurav kashyap
    Replies:
    3
    Views:
    6,608
    Paul Boddie
    Oct 31, 2008
  4. Kapil Jain
    Replies:
    0
    Views:
    234
    Kapil Jain
    Jan 30, 2006
  5. Kapil Jain
    Replies:
    13
    Views:
    192
    Thomas 'PointedEars' Lahn
    Feb 6, 2006
Loading...

Share This Page