If you are a ColdFusion developer, you most probably know by now that it produces lots of white space in the generated HTML file. The extraneous white space may result in a larger file size which leads to slower download speed on the client machines. So, how to get rid of this extraneous white space? First, learn how to use the following CFML tags, then use them in your code:
- <cfsilent>: Suppresses output produced by CFML within a tag’s scope.
- <cfsetting enableCFoutputOnly = "Yes">: blocks output of HTML that is outside cfoutput tags.
- <cfcomponent output = "no">: constructor code is processed as if it were within a cfsilent tag.
- <cffunction … output = "no">: the function is processed as if it were within a cfsilent tag
- <cfcontent reset = "yes">: discards output that precedes call to cfcontent
Possibly related:
- XML configuration files used in ColdFusion MX
- ColdFusion + AJAX = CFAjax
- Read XML from an HTTP POST
- Read The Fabulous Manual
- Did You Know That About PL/SQL Variables?
Tagged html | Post a Comment


















Home > About This Post
This entry was posted by Eddie Awad on Wednesday, June 15th, 2005, at 1:03 pm, and was filed in ColdFusion.
Subscribe to the
RSS 2.0 feed for all comments to this post.
Post a Comment