Link to home
Start Free TrialLog in
Avatar of kch011099
kch011099

asked on

Submit buttons and popup windows

I have an html page with a form that submits information and shows the results on another page. I need this page to pop up in another window. Is this possible?
ASKER CERTIFIED SOLUTION
Avatar of sanek
sanek

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kch011099
kch011099

ASKER

I want to be able to limit the size. Is this possible too?
Limit the size of new window?
Yes, you can use this as prototype:
<form action="your_cgi.cgi" method=post name="status" target="my_new_window" onSubmit="window.open('','my_new_window','resizable=yes,menubar=yes,scrollbars=yes,width=400,height=400'); window.setTimeout('document.status.submit()',2000); return false;">

It will open a window of 400x400
The whole tag should be as single line!
Ok, I tried it and it opens up the new window, but the window remains blank. Any thoughts?
Also, it is not sending and recording the info to the perl script.
Ok, I got it to work.
I had to remove the
;window.setTimeout('document.status.submit()',2000); return false;
portion of it. Everything works great now.

Thanks
Oh, yeah, sorry I've cut-and-pasted with extra unneccessary data.