Flash coldfusion integration

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Flash coldfusion 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>

    dj_actg Guest

  2. Similar Questions and Discussions

    1. Simple Flash/ColdFusion Integration
      I currently have a mailing list on my site that I've made with ColdFusion. It works fine, however, I'd like to add the form to a Flash portion of...
    2. Resources for Flash/Coldfusion Integration
      I'm trying to learn coldfusion and I've been sticking to these rudimentary lessons which use Dreamweaver. I was wondering if there are any...
    3. Coldfusion MX Flash Remoting Integration
      I have developed a Flash remoting project with CFMX7 in a local computer, and it runs perfect. But, now that I want to publish it online in a server...
    4. Coldfusion Flash Integration
      I m a coldfusion developer. I really want to integrate flash and coldfusion. I know basics of flash, never used it for interactivity with db. Please...
    5. Classes for advanced flash and coldfusion integration
      I have been using flash and coldfusion for a while, but I am looking to take it up a nutch and start developing real web-based software...
  3. #2

    Default Re: Flash coldfusion integration

    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

    Sojovi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139