Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i submit the form to a new popup window in required style

Status
Not open for further replies.

coolago

Programmer
Apr 24, 2001
22
CN
Now i need to submit a form and show the result in a pop-up page. But the problem is that we're required to set the pop-up explorer window some special property, e.g. no menu bar, no tool bar, and the most important is that there should be no adress bar in the pop-up InterExplorer. How can i do this?
Following just now the code in our project:

<form action=&quot;/estat/query/querystatreport.do&quot; method=&quot;GET&quot; target=&quot;_blank&quot; name=&quot;statform&quot;>
...
...
<input type=&quot;submit&quot; value=&quot;Query&quot; name=&quot;MonthReport&quot; class=&quot;button&quot;></td>
</form>

How can i?
Thank you very much for your viewing my question, and your so kind help!
Thanks!
 
<script>
function subForm(){
newWin = window.open(&quot;about:blank&quot;,&quot;&quot;,&quot;width=100,height=100,scrollbars=no,menubar=no&quot;)
document.myForm.target = newWin
document.myForm.submit()
}
</script>
<form name=&quot;myForm&quot; action=&quot;formHandler.asp&quot;>
...
...
<input type=button onCLick=&quot;subForm()&quot; value=&quot;Submit&quot;>
</form>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook
 
I've get the solution. Following code is the answer. Thanks mwolf00 very much!

<html>
<title>Vincent Test Pop-style Window</title>
<script type=&quot;text/javascript&quot;>
function doSubmit() {
window.targetWin = window.open(&quot;sdfsdfsdfsdfe&quot;,&quot;targetWin1&quot;,&quot;height=300, width=400&quot;);
return true;}
</script>
<body>
<FORM ACTION=&quot;test.html&quot; target=&quot;targetWin1&quot; NAME=&quot;frmCreditAccount&quot; METHOD=&quot;POST&quot; onsubmit=&quot;return doSubmit();&quot;>
<input type=&quot;Submit&quot; value=&quot;Submit&quot; name=&quot;sfsdf&quot;>
</form>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top