473,327 Members | 2,081 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,327 software developers and data experts.

Posting Data

I need to Post data without submitting the form.

I have a form with the following

Field1
Field2
Field3
Field4
I need to post to an asp page after the first 3 fields are filled out.
I'm trying to submit the first 3 fields by using onBlur of the fourth
field.
I'm just starting in javascript and would appreciate any help.

This is what I have so far:

<SCRIPT language="javascript">
var strSchema = "urn:schemas-microsoft-com:office:office#";
window.document._ctl1.elements(strSchema + "field4").onblur =
GetCDISDetails;

function GetCDISDetails()
{
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
var xmldoc = new ActiveXObject("Msxml2.DOMDocument");
var xmlDomNode;
var strLot = window.document._ctl1.elements(strSchema + "lot").value;
var strdate = window.document._ctl1.elements(strSchema +
"date").value;
var strcomments = window.document._ctl1.elements(strSchema +
"comments").value;

xmlhttp.Open("POST",
"http://imoprod/asp_scripts/include/CDIS.asp?Lot="+strLot+"&date="+strdate+"&comments" +strcomments,false);
xmlhttp.Send(xmldoc);
xmldoc.load(xmlhttp.responseXML);

}
</SCRIPT>
Jul 23 '05 #1
1 1148
Gino,

ActiveX objects?
Posting without the prior knowledge of the user?

Yes, I know how to do it, but please tell us why you want this behaviour
first.

Regards,
Erwin Moller
Jul 23 '05 #2

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

Similar topics

1
by: Allan Cammish | last post by:
I have seen some examples of client-side code inside an ActiveX control posting data back to the server in ASP. I have tried the code and it works well. However, I need to see how this is done...
10
by: DaveFash | last post by:
Posting variables from an HTML FORM, via the Request.Form function on the receiving ASP page is great. But how can you POST a Form variable to an ASP page -- without a human pushing a Submit...
1
by: Allan Cammish | last post by:
I have seen some examples of client-side code inside an ActiveX control posting data back to the server in ASP. I have tried the code and it works well. However, I need to see how this is done...
4
by: Peter Afonin | last post by:
Hello, I have a form with several buttons, and I need to post this data to several different applications. In ASP.NET 1.1 it was quite easy - I just used HTML controls (text or hidden), then...
4
by: Boki | last post by:
Hi All, I need to let user type some text in a textbox, and user will click a button to submit the material. It is very straightforward if we implement it by single thread. But the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.