Solved

Submit buttons and popup windows

Posted on 2000-02-29
8
136 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?
0
Comment
Question by:kch011099
  • 4
  • 4
8 Comments
 
LVL 2

Accepted Solution

by:
sanek earned 50 total points
ID: 2569648
Sure.
Just use target in <form ...> tag.

<form action=your_cgi method=... target=new>


0
 

Author Comment

by:kch011099
ID: 2569658
I want to be able to limit the size. Is this possible too?
0
 
LVL 2

Expert Comment

by:sanek
ID: 2569696
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
0
 
LVL 2

Expert Comment

by:sanek
ID: 2569699
The whole tag should be as single line!
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:kch011099
ID: 2570003
Ok, I tried it and it opens up the new window, but the window remains blank. Any thoughts?
0
 

Author Comment

by:kch011099
ID: 2570149
Also, it is not sending and recording the info to the perl script.
0
 

Author Comment

by:kch011099
ID: 2570221
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
0
 
LVL 2

Expert Comment

by:sanek
ID: 2570509
Oh, yeah, sorry I've cut-and-pasted with extra unneccessary data.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now