Solved

Submit buttons and popup windows

Posted on 2000-02-29
8
135 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
Comment Utility
Sure.
Just use target in <form ...> tag.

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


0
 

Author Comment

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

Expert Comment

by:sanek
Comment Utility
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
Comment Utility
The whole tag should be as single line!
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

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

Author Comment

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

Author Comment

by:kch011099
Comment Utility
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
Comment Utility
Oh, yeah, sorry I've cut-and-pasted with extra unneccessary data.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

772 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

11 Experts available now in Live!

Get 1:1 Help Now