I'm sending data with ajax to my asp classic page - with new FormData() and my alert shows [object FormData] so it should be right? But Im trying to display the variables "folderName" from my asp page in my success alert but it is not showing anything.
So how do I receive the formData on my asp page?
This is what I have now
var formData = new FormData($$(page.container).find('#pdffile')[0]);
formData.append("folderName", "manmade");
myApp.alert(formData); //this shows [object FormData]
$$.ajax({
method: 'POST',
url: 'dokument/dokument2.asp',
//processData: false,
//contentType: false,
enctype: 'multipart/form-data',
data: formData,
success: function (data) {
myApp.alert(data)//I get nothing in the alert?
}
});
return false;
});
and in my asp page I just use request.form!?
<%
folderName = request.form("folderName")
%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<%=folderName%>
</body>
</html>
I don't know why I can´t receive the variable on my asp page? Any input really appreciated, thanks.