submit the form and open new window problem

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

    submit the form and open new window problem

    In the following code, page1.asp is inside the frame of main.html.
    When the user click submit button in page1.asp, it will submit the for
    and open a new window called page2.asp. When the user clicks submit
    button on page2.asp, I expected to open a new window called page3.asp
    Unfortunately, it just open page3.asp in the same window as page2.asp, an
    now page2.asp is gone.

    However, if I just open page1.asp, and begins from there, it is fine
    I think this is because page1.asp is put inside the frame.

    ========= main.html =============== ======
    <frameset><fram e src="page1.asp" ></frameset

    =============== === page1.asp =============

    <form action="page2.a sp" target="_blank"

    =============== === page2.asp =============

    <form action="page3.a sp" target="_blank"

    Any workarounds?? Thanks!

  • Aaron [SQL Server MVP]

    #2
    Re: submit the form and open new window problem

    Check the browser setting, maybe "reuse windows for launching shortcuts"...
    not something you can control from ASP (and really isn't even an ASP issue
    at all, I bet you can reproduce with simple HTML files).

    --

    (Reverse address to reply.)




    "Joe" <anonymous@disc ussions.microso ft.com> wrote in message
    news:4827488A-13F2-462F-A1DB-3AEE90AB3800@mi crosoft.com...[color=blue]
    > In the following code, page1.asp is inside the frame of main.html.
    > When the user click submit button in page1.asp, it will submit the form
    > and open a new window called page2.asp. When the user clicks submit
    > button on page2.asp, I expected to open a new window called page3.asp.
    > Unfortunately, it just open page3.asp in the same window as page2.asp, and
    > now page2.asp is gone.
    >
    > However, if I just open page1.asp, and begins from there, it is fine.
    > I think this is because page1.asp is put inside the frame.
    >
    > ========= main.html =============== =======
    > <frameset><fram e src="page1.asp" ></frameset>
    >
    > =============== === page1.asp ==============
    >
    > <form action="page2.a sp" target="_blank" >
    >
    > =============== === page2.asp ==============
    >
    > <form action="page3.a sp" target="_blank" >
    >
    >
    > Any workarounds?? Thanks!!
    >[/color]


    Comment

    Working...