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! Link to comment https://forums.phpfreaks.com/topic/65684-opening-more-than-1-window/ 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... Link to comment https://forums.phpfreaks.com/topic/65684-opening-more-than-1-window/#findComment-329378 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. Link to comment https://forums.phpfreaks.com/topic/65684-opening-more-than-1-window/#findComment-329469 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.) Link to comment https://forums.phpfreaks.com/topic/65684-opening-more-than-1-window/#findComment-329471 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. Link to comment https://forums.phpfreaks.com/topic/65684-opening-more-than-1-window/#findComment-329508 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.