all groups > coldfusion flash integration > april 2007 >
You're in the

coldfusion flash integration

group:

Flash coldfusion integration



Flash coldfusion integration dj_actg
4/4/2007 6:05:11 PM
coldfusion flash integration: I'm trying to insert a record in a database using coldfusion and a flash form,
coldfusion is receiving the field from flash, but the cfquery tag is not
inserting the record in the database and flash doesn't receive the message
variable from coldfusion.
But when i probe with this code in Coldfusion
&message = Hello World
flash does recive this variable.

Thanks for anybody help.

//// This is the flash code

function enviarForm() {
var envio_lv:LoadVars = new LoadVars();
var recibir_lv:LoadVars = new LoadVars();

envio_lv.emailtxt = email_txt.text;
envio_lv.clave = clave_txt.text;

envio_lv.sendAndLoad("http://localhost/flow/agrega_lista.cfm",recibir_lv,
"POST");

recibir_lv.onLoad = function(exito) {
if (exito) {
mensaje_txt.html = true;
mensaje_txt.htmlText = this.mensaje;
}
else {
mensaje_txt.html = true;
mensaje_txt.htmlText = "<b>Error en el Script</b>";
}
}
}


/// Colfusion side code

<cfsetting enablecfoutputonly="Yes" showdebugoutput="No"
catchexceptionsbypattern="No">
<cfoutput>&mensaje=#EMAILTXT#</cfoutput>
<cfquery datasource="#basedatos#">
INSERT INTO CORREOS(email)
VALUES('#emailtxt#');
</cfquery>
Re: Flash coldfusion integration Sojovi
4/4/2007 10:36:51 PM
The code seems to be OK in both sides. The onLoad event receives True or False
after trying to sendandload ?
Check that you are not making a security sandbox violation (the domain from
where the flash is called should be the same of the cfm file, except that you
configured allow cross domain requests)

Regards
AddThis Social Bookmark Button