Hello I had this idea that I thought was going to be really simple, and I
just cant get it to work..
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...
Response.Buffer = True
Dim objXMLHTTP, xml
Set xml = CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", "http://www.test.co.uk/insurance/quote123.asp", False
xml.Send "select=All"
Response.Write xml.responseText
Set xml = Nothing
I was going to post the request.form data to the real page on the remote
server and grab the results in XMLHTTP and work my way through the process
until I finally passed the browser_user to the payment screen.
I know this is possible as so many sites give examples of it, but I cant get
them to work on my server
any ideas ???
Graham 2 7556
Graham Mattingley wrote: Hello I had this idea that I thought was going to be really simple, and I just cant get it to work..
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...
Response.Buffer = True Dim objXMLHTTP, xml Set xml = CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", "http://www.test.co.uk/insurance/quote123.asp", False xml.Send "select=All"
Response.Write xml.responseText Set xml = Nothing
I was going to post the request.form data to the real page on the remote server and grab the results in XMLHTTP and work my way through the process until I finally passed the browser_user to the payment screen.
I know this is possible as so many sites give examples of it, but I cant get them to work on my server
any ideas ???
XMLHTTP is supposed to sent text/xml, however you want to send
application/x-www-form-urlencoded thus you need to set a request header:
xml.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
Of course all this need to on one line with VBScript and needs to happen
before the Send call
--
Martin Honnen http://JavaScript.FAQTs.com/
Hi Martin,
Thankyou very much for you assistance I am now able to see the varable on
the other page...
I think the big mistake I was making missing the <%@ Language=vbScript%>,
but none of the example I saw stated this in ther codes..
Thanks again
Graham
"Martin Honnen" <Ma***********@t-online.de> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Graham Mattingley wrote:
Hello I had this idea that I thought was going to be really simple, and
I just cant get it to work..
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...
Response.Buffer = True Dim objXMLHTTP, xml Set xml = CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", "http://www.test.co.uk/insurance/quote123.asp", False xml.Send "select=All"
Response.Write xml.responseText Set xml = Nothing
I was going to post the request.form data to the real page on the remote server and grab the results in XMLHTTP and work my way through the
process until I finally passed the browser_user to the payment screen.
I know this is possible as so many sites give examples of it, but I cant
get them to work on my server
any ideas ???
XMLHTTP is supposed to sent text/xml, however you want to send application/x-www-form-urlencoded thus you need to set a request header: xml.SetRequestHeader "Content-Type",
"application/x-www-form-urlencoded" Of course all this need to on one line with VBScript and needs to happen before the Send call --
Martin Honnen http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: RK |
last post by:
I am getting the "HTTP /1.1 405 - method not allowed" error when I am
sending XML string over Msxml2.XMLHTTP object. I am sending data in
POST, also passing querystring variable and here is the...
|
by: Jason Morehouse |
last post by:
Hello,
Anyone know if it's possible to speak with the server via xmlhttp.open
while the browser is doing a post -- file upload in this case:
<form enctype="multipart/form-data"...
|
by: Vanessa |
last post by:
I have a question regarding async mode for calling Microsoft.XMLHTTP object.
Microsoft.XMLHTTP hangs the IE once in a while suddenly, but it will work
again after half an hour or so without doing...
|
by: sfslug |
last post by:
Hello. I'm using xmlhttp in a windows application to return xml data.
The xml data is returned successfully, but I get errors when I try
loading the xmlhttp response object to a dataset. I can...
|
by: hatsumoto |
last post by:
Hello,
I create an ActiveXObject("Msxml2.XMLHTTP") from my HTML page to submit
(i.e. post) XML to a server.
I can see the content of the XML response via javascript
alert(xmlhttp.responseText)....
|
by: balakrishnan.dinesh |
last post by:
hi friends,
Exactly what i want to know is, In my product we are using
xmlhttp request to retrive some data from the server, And Im using IE
browser, its working fine in IE.
Now i want to work...
|
by: Pupkin |
last post by:
Hi,
I've got a web form that needs to submit its data in a number of
different directions.
I was hoping to use XMLHTTP to post it to two external service providers
EROI and Salesforce)
So...
|
by: FMDeveloper |
last post by:
Currently transitioning from a shared host to a dedicated server. The
same code that works on the old server is not working on the dedicated
server. It is a simple AJAX request like:
<code>...
|
by: Nicole.Winfrey |
last post by:
Hi,
At the moment, I'm displaying the XML HTTP response text using
javascript alert (see below).
I'm trying to render XML HTTP response in a new window and the output
of the window needs to be ...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |