How to post the data to a new window and control the new window's property?

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

    How to post the data to a new window and control the new window's property?

    When we submit the form data to another page, we usually do the following:

    <form action="display .asp" method="post"> will submit the form data and open
    display.asp in the current browser

    <form action="display .asp" method="post" target="_blank" > will submit the
    form data
    and open display.asp in a new browser


    Now, what I want is to open display.asp in a new browser, but control the
    window's size,
    and disable the status bar, title bar, and address bar of a new browser.

    If I do this, it can only open a html page, but not post the data to
    display.asp.

    window.open('di splay.asp', "newWin",
    "scrollbars=0,m enubar=0,toolba r=0,location=0, status=0");

    any ideas? thanks!!






  • Bob Barrows [MVP]

    #2
    Re: How to post the data to a new window and control the new window's property?

    Matt wrote:[color=blue]
    > When we submit the form data to another page, we usually do the
    > following:
    >
    > <form action="display .asp" method="post"> will submit the form data
    > and open display.asp in the current browser
    >
    > <form action="display .asp" method="post" target="_blank" > will submit
    > the form data
    > and open display.asp in a new browser
    >
    >
    > Now, what I want is to open display.asp in a new browser, but control
    > the window's size,
    > and disable the status bar, title bar, and address bar of a new
    > browser.
    >
    > If I do this, it can only open a html page, but not post the data to
    > display.asp.
    >
    > window.open('di splay.asp', "newWin",
    > "scrollbars=0,m enubar=0,toolba r=0,location=0, status=0");
    >
    > any ideas? thanks!![/color]

    Submit to a page that contains client-side code to open an new window.

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Comment

    • Matt

      #3
      Re: How to post the data to a new window and control the new window's property?


      "Bob Barrows [MVP]" <reb01501@NOyah oo.SPAMcom> wrote in message
      [color=blue]
      > Submit to a page that contains client-side code to open an new window.[/color]

      Bob,

      Do you mean <form action="process .asp" method="post" target="_blank" > in the
      current page,

      process.asp, which is a page that contains client-side code to open an new
      window.

      Then it will have 3 windows open. And also how the data transfer from
      process.asp to display.asp? It still has problem.

      Please advise. Thanks!


      Comment

      • Bob Barrows [MVP]

        #4
        Re: How to post the data to a new window and control the new window's property?

        Matt wrote:[color=blue]
        > "Bob Barrows [MVP]" <reb01501@NOyah oo.SPAMcom> wrote in message
        >[color=green]
        >> Submit to a page that contains client-side code to open an new
        >> window.[/color]
        >
        > Bob,
        >
        > Do you mean <form action="process .asp" method="post" target="_blank" >
        > in the current page,
        >
        > process.asp, which is a page that contains client-side code to open
        > an new window.
        >
        > Then it will have 3 windows open. And also how the data transfer from
        > process.asp to display.asp? It still has problem.
        >
        > Please advise. Thanks![/color]


        No. Submit to a page that contains client-side code that opens a new window
        (and closes itself).

        --
        Microsoft MVP - ASP/ASP.NET
        Please reply to the newsgroup. This email account is my spam trap so I
        don't check it very often. If you must reply off-line, then remove the
        "NO SPAM"


        Comment

        Working...