pf » Application.cfm and AJAX
February 05, 2007
Application.cfm and AJAX
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
- CFSCRIPT Cheatsheet - May 5, 2008
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks - April 5, 2008
- 10 Most Useful Image Functions in ColdFusion 8 - April 5, 2008
- ColdFusion 8 Image Manipulation Presentation Recording - October 26, 2007
- CFImage Effects Library for ColdFusion 8 - August 9, 2007
Trackback Address: 624/2262DBE923131AFC5E361BFE236DE52E
Spell Checker by Foundeo
- CFSCRIPT Cheatsheet
- 3 New Image Effects for ColdFusion 8
- Googlebot to Submit Web Forms
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks
- 10 Most Useful Image Functions in ColdFusion 8
- Speaking at NYC CFUG This Week
- Adobe AIR Tutorial for HTML / JavaScript Developers
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
Subscribe to my RSS Feed:
RSS
RSS
add to del.icio.us
Pete Freitag is a software engineer, and web developer located in










