Can I do something like this? I am not sure if I can because it is giving me an invalid character error.
[pre]
function c
.....
set httpRequest = Server.CreateObject("MSXML2.ServerXMLHTTP") 'MSXML2.ServerXMLHTTP.6.0
httpRequest.Open "POST", APIURL, False ' false means asynchronous'
httpRequest.setRequestHeader "content-type", "application/x-httpRequest.Send checkRatesArray
postResponse = httpRequest.ResponseText
set httpRequest=Nothing
response.Write postResponse
redirect(postResponse)
end function
function redirecting(thisOne)
$.ajax({
type: "POST",
url: "../easyparcel/decodeTrial.asp",
data: JSON.stringify({postResponse}),
contentType: "application/json; charset=utf-8",
dataType: thisOne,
task:"checkRates",
success: function (msg) {
window.open("MultiLineTitleForAnchor.aspx");
}
});
end function
[/pre]
I am trying to send a json object between two asp files. Any idea how to do this?
[pre]
function c
.....
set httpRequest = Server.CreateObject("MSXML2.ServerXMLHTTP") 'MSXML2.ServerXMLHTTP.6.0
httpRequest.Open "POST", APIURL, False ' false means asynchronous'
httpRequest.setRequestHeader "content-type", "application/x-httpRequest.Send checkRatesArray
postResponse = httpRequest.ResponseText
set httpRequest=Nothing
response.Write postResponse
redirect(postResponse)
end function
function redirecting(thisOne)
$.ajax({
type: "POST",
url: "../easyparcel/decodeTrial.asp",
data: JSON.stringify({postResponse}),
contentType: "application/json; charset=utf-8",
dataType: thisOne,
task:"checkRates",
success: function (msg) {
window.open("MultiLineTitleForAnchor.aspx");
}
});
end function
[/pre]
I am trying to send a json object between two asp files. Any idea how to do this?