Question
Why is nothing returned to Flash, please?
Hello
I have a simple AS (2) script which sends variables to an ASP file, but does not get a response back:
on (release) {
loadVariables("myfile.asp",this,"POST");
//when the server responds
this.onData = function() {
if(this.output=='sent') {
status_txt = 'Thank You <%= name %>';
} else {
//if not
status_txt = 'Sorry, there is a system error';
}
}
}
The form is successfully sent and stored in a database, but I cannot tell from my Flash site that it has been sent successfully. The dynamic text box (status_txt is its instance name) does not show anything.
This is my ASP:
<%
If Err.Number <> 0 then
Response.Write "&output=fail"
Response.End
else
Response.Write "&output=sent"
End if
%>
Thank you for any help.
Steve
I have a simple AS (2) script which sends variables to an ASP file, but does not get a response back:
on (release) {
loadVariables("myfile.asp",this,"POST");
//when the server responds
this.onData = function() {
if(this.output=='sent') {
status_txt = 'Thank You <%= name %>';
} else {
//if not
status_txt = 'Sorry, there is a system error';
}
}
}
The form is successfully sent and stored in a database, but I cannot tell from my Flash site that it has been sent successfully. The dynamic text box (status_txt is its instance name) does not show anything.
This is my ASP:
<%
If Err.Number <> 0 then
Response.Write "&output=fail"
Response.End
else
Response.Write "&output=sent"
End if
%>
Thank you for any help.
Steve