Application.cfm and AJAX
February 05, 2007
I had someone email me with the following question today:
I'm developing a ColdFusion app with Prototype. Seems Ajax.updater wants to insert my application.cfm code into my div along with responseText. How can I stop this?
This question brought up two good points. First the simple answer to his questions is that you can reset the output buffer using cfcontent:
<cfcontent reset="true">
The second point is that, for reasons like this it's not usually a good idea to output anything in Application.cfm or OnRequestEnd.cfm. It's better to just cfinclude a header and footer template.
Related Entries
- Hands on ColdFusion Security Training - February 4, 2010
- Implicit Structure Notation ColdFusion - January 13, 2009
- Mastering CFQUERYPARAM - July 24, 2008
- Getting ColdFusion SQL Statements from SQL Server Trace - June 16, 2008
- CFSCRIPT Cheatsheet - May 5, 2008



add to del.icio.us



