I've got a cfhtmlhead tag set up in my application CFC that
defines some JS variables for CF use and vice-versa. They're inserted into
head of every page.
I noticed, when running an sequence involving an HTML form - jQuery ajax
CFC method - and JSON data return, that the JS variables are being inserted
into the JSON return data from the ajax call. This is throwing off my
"success" processing after the call.
Is there any way to prevent the JS being output using cfsavecontent and a
in the CFC from ending up in the JSON data return? The CFMAIL is processed
and the mail goes out, but the extra data beyond "success" in the JSON is
and further JS statement from processing...basically, the "Processing..."
isn't being hidden and the "Thank You" message isn't being shown after the
is processed and the mail is sent.
I didn't want to get into all the code up front in case there's a simple way
to handle this.
Thanks for any feedback! If you need to see some code, let me know!