We help IT Professionals succeed at work.

Submit buttons and popup windows

kch011099
kch011099 asked
on
163 Views
Last Modified: 2012-05-04
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?
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I want to be able to limit the size. Is this possible too?

Commented:
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

Commented:
The whole tag should be as single line!

Author

Commented:
Ok, I tried it and it opens up the new window, but the window remains blank. Any thoughts?

Author

Commented:
Also, it is not sending and recording the info to the perl script.

Author

Commented:
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

Commented:
Oh, yeah, sorry I've cut-and-pasted with extra unneccessary data.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.