Jump to content

opening more than 1 window


php_novice2007

Recommended Posts

Hi,

 

I have a form with the following tag:

<form name="graph_form" action="graphData.php" method="post" target="foo" onSubmit="window.open('', 'foo', 'width=500,height=350,status=yes,resizable=no,scrollbars=no')">

 

When the user clicks on the submit, graphData.php opens in a new window, which is what I wanted. Since the original window is still opened I'm wondering whether it is possible to change my choice on it, and resubmit the form and open another graphData.php window. So far in my graphData.php window I just have it print the choices the user made, and when I resubmit the form in the main window, the first opened window changed its contents. Instead I want a second window to open with the new contents. How can I do that?

 

Thanks!

             

Link to comment
Share on other sites

I am not 100% sure on this, but when the user clicks the submit, it might be a little easier to use javascript to close all the opened windows under the parent window(main window) and just reopen a new window with the new data.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.