php_novice2007 Posted August 19, 2007 Share Posted August 19, 2007 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! Quote Link to comment Share on other sites More sharing options...
php_tom Posted August 20, 2007 Share Posted August 20, 2007 Do you have the page on a server somewhere? I'm not quite sure I understand what you're trying to do... Quote Link to comment Share on other sites More sharing options...
adam84 Posted August 21, 2007 Share Posted August 21, 2007 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. Quote Link to comment Share on other sites More sharing options...
php_tom Posted August 21, 2007 Share Posted August 21, 2007 Um, if you close all the windows then there isn't one left for javascript to run in to open another. (I think.) Quote Link to comment Share on other sites More sharing options...
php_novice2007 Posted August 21, 2007 Author Share Posted August 21, 2007 Yes the page is on the server. It opens to plot a graph, and since I have not worked out how to draw more than 1 graph on the same page, I want javascript to be able to open more than 1 page so that the user can look at both graphs at the same time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.