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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display result

Status
Not open for further replies.

hz

Programmer
Oct 2, 2000
29
US
A html form submits to a server script, the script should display the processing result to a new window without location bar, is this doable? How?
 
what language are you using to process your form submission?

you can open a window without a location bar using Javascript like this.

window.open('mypage.htm', 'windowName', 'height=300px, width=300px, toolbar=yes, scrollbars=yes, menubar=yes, status=yes, location=no')

you can mess around with what you want on the window by altering the yes/no values... you must specify the location of the page to load into the window and a name for it. everything else is optional. if you dont specify anything else a window will open as if you used
Code:
<a href=&quot;fjhfk.htm&quot; target=&quot;_blank>

hope this helps

rob
 
Crazyboybert:

Thanks for replaying.

My question is to submit a form to a server asp script, the asp will process the data then display the results in a customized window. I MUST use a form to post data to sever.

So for a user, once s/he clicks submit form button, a new customized window will pop up displaying the result.

Is this doable? Because I didn't see anything like this so far?


hz
 
Victor:

I took a look at the Thread216-103448 you mentioned.

However, the &quot;target=new&quot; solution I have tried. It will open a default window, but I can want a custiomized window to be opened instead of a default one. Plus in NS6 the new window could not get the user input even.
 
ok, let me combine it for you:

1. open a new custom window

var newwin=window.open('mypage.htm', 'windowName', 'height=300px, width=300px, toolbar=yes, scrollbars=yes, menubar=yes, status=yes, location=no')

2. define form target to that window

<form target=&quot;windowName&quot;>
but i'm not shure, should it be windowName or newwin.. try them one by one, it is the way

>>Plus in NS6 the new window could not get the user input even.
what do you mean? 8-| Victor
 
Thanks very much, Victor, I will try that later. -hz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top