I've written 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");
}
}); // end ajax
}
How do I read the data that I post from my classic ASP code?
Update I've tried the following for my classic asp file x.asp.
<%
Dim x
x = Request.Form("text")
Response.Write(x)
%>
It still prints nothing.