Jun 9, 2000, 8:05 AM
Post #1 of 4
Here is the deal. I need to submit a form to my script. Based on which of the submit buttons was pressed (ie. "preview" and "save") I need to either output to the origanal window or open another window for output. I found in an earlier post by Cure how to direct the script to output to a new window
script output to two different windows?
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>
<form onSubmit="cureWindow=window.open('','newwindow','resizable=no,toolbar=no,scrollbars=yes,width=640,height=500')" action="$thiscgi" method="post" target="newwindow"></pre><HR></BLOCKQUOTE> and that works great but I only want to do that if the "preview" submit button is pressed. Other wise, if the "save" button is pressed, I need the script output to be returned to the calling window without opening the new window.
I hope this makes sense and I hope there is a solution. If anyone has any suggestions, please let me know.
Thank you for your time.