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.
Tweet
Related Entries
- Client Variable Cookie CFGLOBALS Includes Session Ids - July 14, 2011
- Maximum Security CFML - cfObjective Slides - May 17, 2011
- Writing Secure CFML Slides from CFUnited 2010 - August 5, 2010
- 10 Ideas to Improve Security in ColdFusion 10 - June 18, 2010
- Hands on ColdFusion Security Training - February 4, 2010
Trackbacks
Trackback Address: 624/2262DBE923131AFC5E361BFE236DE52E
Post a Comment
Spell Checker by Foundeo
Recent Entries
- Nginx redirect www to non www domain
- HashDOS and ColdFusion
- HackMyCF Updated for APSB11-29 Security Hotfix
- Adobe eSeminar on FuseGuard
- Determining Which Cumulative Hotfixes are Installed on ColdFusion
- Adding Two Factor Authentication to ColdFusion Administrator
- ColdFusion Developer Week at Adobe.com
- Bug Loading Scripts for CFFileUpload and CFMediaPlayer


add to del.icio.us



