I wrote the following Javascript code:
function sendCcbRequest(text) {
var jsonToSend = "\"text\": \"" + escape(text) + "\"";
$.ajax({
type: "POST",
url: 'x.asp',
data: jsonToSend,
success: function(response) {
alert("success:" + response);
},
error: function() {
alert("error");
}
});
}
How to read the data that I send from my classic ASP code?
Update
I tried the following for my classic asp x.asp file.
<%
Dim x
x = Request.Form("text")
Response.Write(x)
%>
He doesn't print anything.
source
share