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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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_win dow','resi zable=yes, menubar=ye s,scrollba rs=yes,wid th=400,hei ght=400'); window.setTimeout('documen t.status.s ubmit()',2 000); return false;">
It will open a window of 400x400
Yes, you can use this as prototype:
<form action="your_cgi.cgi" method=post name="status" target="my_new_window" onSubmit="window.open('','
It will open a window of 400x400
The whole tag should be as single line!
ASKER
Ok, I tried it and it opens up the new window, but the window remains blank. Any thoughts?
ASKER
Also, it is not sending and recording the info to the perl script.
ASKER
Ok, I got it to work.
I had to remove the
;window.setTimeout('docume nt.status. submit()', 2000); return false;
portion of it. Everything works great now.
Thanks
I had to remove the
;window.setTimeout('docume
portion of it. Everything works great now.
Thanks
Oh, yeah, sorry I've cut-and-pasted with extra unneccessary data.
ASKER