Solved

Submit buttons and popup windows

Posted on 2000-02-29
8
138 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 2

Expert Comment

by:sanek
ID: 2569699
The whole tag should be as single line!
0
 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SIMPLE Perl Regex 1 159
Perl 101 11 77
Perl troubleshooting error. Base64 bootstrap parameter 5 70
Any syntax error for this clone.plscript 6 140
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…

831 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