title: Returning value from Coldfusion CFC called with JQuery Ajax
body: <p>I'm trying to call an CFC component with Ajax. But I need to pass the value returned by the CFC to my javascript routine. The <code>done</code> function creates the correct message when I display <code>msg</code> in an alert. But the <code>ret</code> variable is never populated with that value. I need the value returned to alter the javascript data flow. </p>
  
  <p>What am I doing wrong?    </p>
  
  <pre><code>var ret = $.ajax({
                type: "post",
                url: "cfc/CFCSemae.cfc",
                data: {
                    method: "verificaCadastro",
                    returnformat: "plain",
                    queryformat: "column",
                    nro_cadastro: num_cad
        },
        dataType: "html",
        }).done(function(msg){ return msg; });
  
  alert(ret);
  </code></pre>