Post Form Data To A Modal Dialog Window
I want to post the form data (http://server/page1.asp) to a modal dialog
window (http://server/modaldialog.asp) with a desired height 200px by width
200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form
action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the
width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params,
"dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to
modaldialog.asp. Any workarounds to my problems??
View Replies
ADVERTISEMENT
I want to post the form data (http://server/page1.asp) to a modal dialog
window (http://server/modaldialog.asp) with a desired height 200px by width
200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form
action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the
width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params,
"dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to
modaldialog.asp.
Any workarounds to my problems??
View Replies
View Related
Is it possible to post the form data and open the page as a modal window?
Because when I do the following, it will open page2.asp in a new window, but
I still able to manipulate page1.asp. I want to make page2.asp as modal
window.
<form action="http://server2/page2.asp" method="post" target="_blank">
Any ideas?
View Replies
View Related
I have a web page that opens a modal dialog (client side) in the
following manner
onclick="window.showModalDialog('/dialog.asp',null,'dialogHeight: 200px;
dialogWidth: 400px; dialogTop: 300px; dialogLeft: 150px; edge: Sunken;
center: Yes; help: No; resizable: No; status: No;');">
and the page loads in the modal dialog no problem.
Now, the asp page is a form that submits to itself and so the modal dialog
contains a form that submits to itself.
This is fine except that submitting the form opens a new window.
what I would like to happen is submit the form and it comes back to display
itself in the modal dialog again. if the form processing detects an error I
will leave the form displayed, if no error is detected then I will close the
window using some client side javascript.
however I am having trouble getting the modal dialog form to submit back to
itself and redisplay again within the modal dialog.
View Replies
View Related
I would have liked to submit a form from a modal web dialog, i.e. a window
opened using showModalDialog() in which there is a form to submit. I thought the
dialog content would be replaced with the submitted page results but I saw a new
instance of MSIE instead.
Is this behaviour normal (I mean expected)? (How) can I replace a web dialog
content with submission page (i.e. the url in the form "action" attribute)
results?
View Replies
View Related
I am using a modal window and an iFrame to try and pull a return value
back. I am doing this across domains.
I have the value returned from the modal window to the iFrame window
but I can not get the value returned to the parent window. The alert
in the parent window always returns undefined errors. Code:
View Replies
View Related
Does anybody have the syntax to post form data to a CSV file? On submit, my form page will post to another asp page that will actually handle the data being dumped to a CSV file. I just can't seem to find the correct ASP syntax for this.
View Replies
View Related
There are 2 ways of passing variable to another page: GET and POST
If i want to use Method GET, I jst need to do Response.Redirect "another.asp?id=abc"
What if I want to use Method POST, how to do it?
I want the user's input to be processed before post it to another page.
View Replies
View Related
What is the appropriate control or code to pop a "save as" dialog window to
allow the user of a web page to save a document after they click on a link?
All of the CommonDialog controls obviously are to be used on WinForms, so not
sure how to accomplish this from an aspx page.
View Replies
View Related
Here is the situation:
1. User fills in form and hits submit
2. Some processing is done with the posted data using ASP
3. The posted form variables now need to be submitted to another script which only receives POSTed data.
How do I send the posted data to another script? I can't run step 2 on the next script as its validation script and I'm going across two servers.
View Replies
View Related
Is it possible to post form data and open an invisible window?
For example, in page1.as
<form action="page2.asp" method="POST"
It will post the form data from page1.asp to the server, and open page2.asp. But I dont want to make page2.asp invisible.
View Replies
View Related
I have IIS server installed on XP-pro. I also have Norton Internet
Security installed.
I can run simple ASP programs without any problem. But when I use forms
with post method and call an asp in action, it does not pass any data
to ASP.
Request.Form method on a form field does not return any value.
This code works on web hosting provider server, just does not work on
my workstation with my own IIS server. Code:
View Replies
View Related
I've got a question regarding data retrieved via Post.
If i have a standard textfield within my form:
<input type="text" name="number" size="10">
and i submit the form with the textfield left blank, when i use:
Request.Form("number")
what data type will it return? I need to know the data type so i can check for "", null, nothing or something else.
Assume these scenarios:
1. The user is supposed to type in a number in the textfield
2. The user has no restrictions on what he can type in the textfield
View Replies
View Related
Does anyone know how to post form data to a popup window either by using ASP or JavaScript? I have a form full of inputs and I want to open a popup window where the processing can take place.
View Replies
View Related
I'm trying to "post" a form in asp to a script off the main site.
I suppose I could do a response.redirect to the script, but am wondering if there is a more direct way to do it. Something like the XMLHttp obj in js.
View Replies
View Related
My form has mixed fields in it, one of them is a file field for picture upload when i submit my form via method="GET" i can retrieve my form data with Request.QueryString() method but as then I loose my file, but as soon as I switch to method="POST" and use Request.Form() method i get nothing unless I remove enctype="MULTIPART/FORM-DATA" at which point I loose mi file also... What is causing this? is there a different enctype i need to be using?
View Replies
View Related
i have a series of .asp pages that i am dividing into model, view, control logic. my view collects a whole bunch of data and posts it to the controller. im wondering if there is a way to somehow "re-post" this same data to my model page.
in short, is .asp capable of taking data posted to a page and re-post that same data to another page?
View Replies
View Related
in past, i learnt from the book to post data by
action=post & input type=text
now the post data is not from user input
it is from a table which is generated by asp script
i wish to generate a table with a check box at each row.
when i select the check boxs, then the rows of the table will be posted to
another html page
any hints to me for doing this?
Secondly, how about if rows of the table will be posted to a input box on
another html page grateful if you could give me some hints.
View Replies
View Related
i have an asp page with a form that posts to itself. (the action of the form
is the same page the form is on). i validate input and dont accept it if
there is something wrong with it. problem is that when the form is
submitted, and i display the error message, the data the user typed in the
box is gone. i work around this by setting a session variable as soon as the
user hits submit and store the data the user typed. then for the default
value of the textbox i have <%= Session("var") %and that leaves the users
data in the box for them to edit. is there a better way i could do this?
View Replies
View Related
Is there a way I can POST data from a ASP page to another page? I am not trying to POST data from a form to another page, but would like to create the POST headers from different variables, and then send it to another page
View Replies
View Related
I have a temporary file being created in an order processing system. After the user agrees the data is correct the data needs to be written to a permanent table. There are usually 100 or so records. what is the best way to do this? the fields names are not the same either and the new records also need to be updated with the price from the parts table.
temp file: item number description qty
permanent file: item description pcs price
The price comes from the parts table. When I link the parts and temp tables and try to insert into the permanent table, I am using a loop and it's taking FOREVER.
View Replies
View Related
i have an Update button. according to flow operation, after customer clicks the button, the new data will be saved and i want to close the current window automatically. how to that?
View Replies
View Related
Is there a way to see all the post data that is sent an .asp page. I am working on a page that is being returned from another application and I would like to know what data I can work with.
View Replies
View Related
I have use an affiliate link on my site, and I did not like it because it
did not have my sites banners on it, so I asked the permission of the other
site to change the display and they aggreed..
The affiliate site has 4 pages of forms linking to each other so it goes
something like
form.asp > results.asp > results_details.asp > confirm_details.asp >>>>>>
proceed to payment..
I wanted to grab the each page page using the XMLHTTP object and then the
post of the form to a local pages on my site.. The local pages would grab
the request.form string and then using code something like below..
on my page quote123.asp, I have <%=request.form%> and I never see the string
"select=All" - why is this... Code:
View Replies
View Related
What is the maximum size of POST data? A page on the ASP FAQ web site
(http://classicasp.aspfaq.com/forms/...parameters.html)
is confusing me:
"While GET is limited to as low as 1024 characters, POST data is
limited to 2 MB on IIS 4.0, and 128 KB on IIS 5.0. Each name/value is
limited to 1024 characters, as imposed by the SGML spec."
Does this last sentence mean that no form field can submit more than
1024 (or 1024 minus the length of the form field name) characters
through POST?
View Replies
View Related
What I'm doing is using the same page to process data as well as display the forms, the form action goes something like Action="me.asp?action=someting" and the data is sent via POST. but when someone wants to refresh that page, it prompts to use the same values again which I dont want to happen.
Does anyone know a way to destroy these values ??
View Replies
View Related
I have a page with 4 submit buttons. How can I make 1 of these buttons spawn a new page AND use the data posted from the orginal page?
View Replies
View Related
When creating a form I normally post the data to the same page-picking up the form has been posted and act accordingly.
Is there any way of destroying the post data without having to redirect back to the same page after m,y code has executed?Basically this is to stop the form data being re-submitted if the user refreshes the page
View Replies
View Related
We have a create ASP page where the user fills in the fields and clickssubmit to post the data to a save page. Recently it looks like the data is being lost at some point. We use Request.Form.Item to get the data from the create page but its just bringing back a blank field.Has anyone else had a problem like this or have an idea why it might be
happening?
View Replies
View Related
I have developed quite a lots of ASP which accept POST data in plain text format. Those ASP URLs are fixed because other applications of other parties are using them. So, I want to redirect the POST data to new aspx pages. However, if I use Response.redirect("somepage.aspx"), the POST content is lost.
View Replies
View Related
Is there a way to save post data or post data from a redirect like this: Response.Write("<meta http-equiv=""Refresh"" content=""4; URL=AdminSelectAction.asp"">") If there is not, I'll have to spend a LOT of time coding in session variables and what not.
View Replies
View Related
I was just wondering if there is a variable or procedure for getting all the POST data sent to a page. I don't want to have to handle every case for the POST data, I just want all POST data sent to the page to be outputted automatically.
View Replies
View Related
I have data that needs to write to a temp table (there is a lot of data sometimes). Once they are finished, the user approves their input and it goes to a permanent table.
I give them the option of deleting that data by cancelling their request.
The problem I have, just to be on the safe side, what can I do to protect myself if the user closes or perhaps browses away from the page? Is there any sort of an window command whereby I could enable a sort of a kill-like function?
View Replies
View Related