POSTing to a new window

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

    #1

    POSTing to a new window

    Hello,
    How would you POST form data to a new window? That is, I have my
    basic page

    <html>
    <head>
    <script type="text/javascript">
    function postFormData() {
    ...
    }
    </script>
    </head>
    <body>

    <form name="f" method="post" action="respons e.jsp">
    <input type=hidden name=input1 value="1">
    <input type=hidden name=input2 value="2">
    <input type=button name=input3 onClick="postFo rmData();">
    </form>

    </body>
    </html>

    what do I fill in form the body of t"postFormDa ta" so taht my page is
    submitted, but the results appear in a new window?

    Thanks, - Dave
  • Michael Winter

    #2
    Re: POSTing to a new window

    On 26 Oct 2004 11:14:10 -0700, D. Alvarado <laredotornado@ zipmail.com>
    wrote:
    [color=blue]
    > How would you POST form data to a new window?[/color]

    Please read the FAQ (<URL:http://jibbering.com/faq/>). Your answer is
    there.

    [snip]

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    • Evertjan.

      #3
      Re: POSTing to a new window

      D. Alvarado wrote on 26 okt 2004 in comp.lang.javas cript:
      [color=blue]
      > How would you POST form data to a new window?
      > <form name="f" method="post" action="respons e.jsp">
      >[/color]

      <form method="post" action="respons e.jsp" target="_blank" >

      This is html, no javascript, so OT !!


      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress,
      but let us keep the discussions in the newsgroup)

      Comment

      Working...