mrand01
07-15-2003, 12:40 PM
Trying to make flash send vars to an ASP page, then have the ASP page send back a different var...for some reason, this isn't working...I have code thats virtually identical to this that works, so I really don't have any idea why this won't.
myArray = sendString.join(",");
aLength = sendString.length;
username = user_txt.text;
sending.myArray = myArray;
sending.aLength = aLength;
sending.username = user_txt.text;
sending.sendAndLoad("http://localhost/onDemandTest/results.asp",sending,"POST");
sending.onLoad = function() {
if(this.finish == "True") {
user_txt._visible = true;
user_txt.text = "Success";
}
else {
user_txt.text = "Nope";
}
}
ASP
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Dim aLength
Dim Answers
Dim username
Dim strVDS
aLength = Request("aLength")
Answers = Request("myArray")
username = Request("username")
strVDS = "&finish=True"
Response.Write strVDS
%>
</body>
</html>
myArray = sendString.join(",");
aLength = sendString.length;
username = user_txt.text;
sending.myArray = myArray;
sending.aLength = aLength;
sending.username = user_txt.text;
sending.sendAndLoad("http://localhost/onDemandTest/results.asp",sending,"POST");
sending.onLoad = function() {
if(this.finish == "True") {
user_txt._visible = true;
user_txt.text = "Success";
}
else {
user_txt.text = "Nope";
}
}
ASP
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Dim aLength
Dim Answers
Dim username
Dim strVDS
aLength = Request("aLength")
Answers = Request("myArray")
username = Request("username")
strVDS = "&finish=True"
Response.Write strVDS
%>
</body>
</html>