textboxes from another window???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Samir

    textboxes from another window???

    1. Here is a form on the first page

    <form method="POST" name="originalw indow" 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="openwindo wform" name="form2">
    <p><input type="text" name="T1" size="20"></p>
    <p><input type="button" value="Submit" name="B1"
    onclick="saveno w()"><input type="reset" value="Reset" name="B2"></p>
    </form>


    <script language="javas cript">
    fucntion savenow(){
    window.opener.f orm1.T1.value = form2.T1.value

    form.submit()
    }
    </script>

    3. is this correct at all???



  • Samir

    #2
    Re: textboxes from another window???

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

    "Samir" <Samir@yahoo.co m> wrote in message
    news:gZKXc.5938 6$Ln6.26085@fe1 8.usenetserver. com...[color=blue]
    > 1. Here is a form on the first page
    >
    > <form method="POST" name="originalw indow" name="form1">
    > <p><input type="text" name="T1" size="20"></p>
    > <p><input type="button" value="Submit" name="B1" onclick="This event[/color]
    opens[color=blue]
    > 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="openwindo wform" name="form2">
    > <p><input type="text" name="T1" size="20"></p>
    > <p><input type="button" value="Submit" name="B1"
    > onclick="saveno w()"><input type="reset" value="Reset" name="B2"></p>
    > </form>
    >
    >
    > <script language="javas cript">
    > fucntion savenow(){
    > window.opener.f orm1.T1.value = form2.T1.value
    >
    > form.submit()
    > }
    > </script>
    >
    > 3. is this correct at all???
    >
    >
    >[/color]



    Comment

    Working...