CFFunction Tip

Extra white space can be a problem for some in ColdFusion. If you are creating ColdFusion Components (CFC) or User Defined Functions (UDF) then there is an attribute to the CFFUNCTION tag that can help.

The OUTPUT Attribute: You should add the attribute output=”no” to the CFFUNCTION tags in your CFC/UDF when it is not rendering display text. This will make it work like CFSILENT, when set to “yes” its like CFOUTPUT.

Note: CFSILENT suppresses all output that is produced by the CFML within the tag’s scope.

Pass it on:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • TwitThis
  • Google Bookmarks
  • Live-MSN
  • Pownce
This entry was posted in ColdFusion and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>