|
Home > Archive > IIS ASP > February 2007 > Is there a way to force a post without using submit button?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Is there a way to force a post without using submit button?
|
|
|
| Is there a way to force a post without using submit button?
Thanks,
Jim
| |
| Dave Anderson 2007-02-18, 1:17 pm |
| "JimO" wrote:
> Is there a way to force a post without using submit button?
This is not really an ASP question, but rather an HTML one. ASP has no
buttons, as it runs on the server.
That said, *ANY* means of form submission will do, as long as your form
method is POST.
Likewise, you can post XMLHttpRequest submissions. But I doubt you are using
AJAX.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
| |
| ravichoudhari 2007-02-20, 7:16 pm |
| It has nothing to with ASP is it is a client side problem, however if
u want to send the form data using POST without using the HTML form, u
can have a look at
http://groups.google.co.in/group/mi...sp&rnum=1&hl=en
and
How to Send HTTP Post data to a Web Server (VB6) in www.abstractvb.com
both these explain POST using VB 6.
| |
| Dave Anderson 2007-02-20, 7:16 pm |
| [please quote at least part of the message you are responding to]
ravichoudhari wrote:
> It has nothing to with ASP is it is a client side problem, however
> if u want to send the form data using POST without using the HTML
> form...
It does not *necessarily* have anything to do with ASP. It is certainly
possible to use ASP to "force a post without using a submit button":
<%@ Language="JScript" %><%
var xmlhttp = new ActiveXObject("Msxml2.ServerXMLHTTP.4.0")
xmlhttp.open("POST", targetURL, false)
xmlhttp.send("name1=value1&name2=value2")
%>
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
|
|
|
|
|