473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Submit a form and open a popup at once


Hello all

I have a little problem and I hope it is simple.
I have a form on my page and I have to open a pop-up window with
the page serverd after the form submit. I know I can compose the URL myself
with the contents of the fields and do a simple window.open but I
must use POST, not GET.

And another question: Is there a better way to submit large fields
to the server without the POST method and without including the
contents in the URI, like GET ? I think it's ok to send large fields,
like files, with POST, but with GET how do I do this ? I can't
include the file's contents in the URI...
--
Thank you
Timothy Madden
Romania
----------------------------------------
And I don't wanna miss a thing
Jul 23 '05 #1
4 2792
On Thu, 8 Apr 2004 16:02:38 +0300, Timothy Madden
<ba****@rmv.spam.home.ro> wrote:
I have a little problem and I hope it is simple.
I have a form on my page and I have to open a pop-up window with the
page serverd after the form submit. I know I can compose the URL myself
with the contents of the fields and do a simple window.open but I must
use POST, not GET.
Read the FAQ, particularly:

<URL:http://jibbering.com/faq/#FAQ4_37>
And another question: Is there a better way to submit large fields to
the server without the POST method and without including the contents in
the URI, like GET ? I think it's ok to send large fields, like files,
with POST, but with GET how do I do this ? I can't include the file's
contents in the URI...


There are no ways other than GET or POST[1].

Mike
[1] There are other method types, but they have different purposes.

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 23 '05 #2
Michael Winter wrote:
On Thu, 8 Apr 2004 16:02:38 +0300, Timothy Madden
<ba****@rmv.spam.home.ro> wrote:
I have a little problem and I hope it is simple.
I have a form on my page and I have to open a pop-up window with the
page serverd after the form submit.


Read the FAQ, particularly:
<URL:http://jibbering.com/faq/#FAQ4_37>


Ok, thanks, this may work, but I would rather not use frames
The target attribute is depricated. Are there maybe other ways too ?

And another question: Is there a better way to submit large fields to
the server without the POST method


There are no ways other than GET or POST[1].

Mike


Ok, so how does one submit several textareas, or several form fields from
a form that spans multiple pages ?

--
Timothy Madden
Romania
-------------------------
And I don't wanna miss a thing
Jul 23 '05 #3
On Thu, 8 Apr 2004 20:08:02 +0300, Timothy Madden
<ba****@rmv.spam.home.ro> wrote:
Michael Winter wrote:
[posting a form to a new window with target attribute]
Ok, thanks, this may work, but I would rather not use frames
You wouldn't be using frames, but you would have to use Transitional HTML.
I understand, and share, your hesitation.
The target attribute is depricated. Are there maybe other ways too ?


I don't think so.
And another question: Is there a better way to submit large fields to
the server without the POST method


There are no ways other than GET or POST[1].


Ok, so how does one submit several textareas, or several form fields from
a form that spans multiple pages ?


A really horrible way to do it would be to place the data in the next page
as a series of hidden fields. A much nicer way would be to store the data
temporarily in a database using a session ID encoded in a cookie or the
search part of the URI.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 23 '05 #4
Michael Winter wrote:
On Thu, 8 Apr 2004 20:08:02 +0300, Timothy Madden
<ba****@rmv.spam.home.ro> wrote:
Michael Winter wrote:


[posting a form to a new window with target attribute]
Ok, thanks, this may work, but I would rather not use frames


You wouldn't be using frames, but you would have to use Transitional HTML.
I understand, and share, your hesitation.
The target attribute is depricated. Are there maybe other ways too ?


I don't think so.

Ok, so how does one submit several textareas, or several form fields from
a form that spans multiple pages ?


A really horrible way to do it would be to place the data in the next page
as a series of hidden fields. A much nicer way would be to store the data
temporarily in a database using a session ID encoded in a cookie or the
search part of the URI.

Mike


Thank you
This is pretty much what I wanted to know
I think I can put it practice now :)
--
Timothy Madden
Romania
-------------------------
And I don't wanna miss a thing
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
Can form.submit() submit another form? In the following example, in page1.asp, it is fine to submit the current form: form1.submit(), and and I could see the value "Joe" in page2.asp. However, if I...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
2
by: Johan | last post by:
I have a form that submit to the same page when double click on a product: <form method="post" action="quotes.asp" name="form1" onDblClick="javascript:formHandler()"> How can I submit the form...
1
by: Marshall Dudley | last post by:
I have a page where there are multiple submit buttons, some load the next page in the same window to continue, and some need to open the page in a popup for additional information. Therefore I...
2
by: jrefactors | last post by:
The following will submit the form data to popup by clicking the submit button. I want it will submit the form automatically to the popup, there is no submit button in this page. Basically this...
1
by: Matt Jensen | last post by:
Howdy I've got a ASP.NET webform page that pops up a window for a user to make a selection. Once they make a selection in this popup window, the form in the popup is submitted an update to the...
4
by: jwlum | last post by:
I have the following problem under Internet Explorer only: 1. User fills out form data (myform.php) and clicks a button that fires myFunction() 2. myFunction() spawns a "hello, world" popup page...
4
by: Gabriella | last post by:
Hi, I have a popup window that opens from a page on my website. This popup is a form with several fields. Upon submit button it redirects to a server side ASP page which writes all data to the...
1
by: xhunter | last post by:
Ok, I hope I can get some help here, Basically what I want to do, is to have my form to be submitted to a popup, no problem there, the problem is, I want to initiate this from a button that...
11
by: V S Rawat | last post by:
using Javascript, I am opening a web-based url in a popup window. MyWin1=Window.Open(url, "mywindow") There is a form (form1) in the url in that popup window, I need to submit that form. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.