ColdFusion Edge 2001
A Fast Track for ColdFusion Certification
International Web Services Conference & Expo East
September 23-26 in New York City
Preventing display of the text between paired tags
Preventing display of the text between paired tags
Text between the tags is displayed before executing in end mode
To prevent this:
simply assign an empty string to it during the end mode after processing
may not seem logical that assigning it an empty string inside the custom tag will prevent it displaying before the end mode, but it does
<cf_doit12>testlines</cf_doit12>
<cfif thistag.executionmode is “end”> Storing: <!–-- cfquery to store #thistag.generatedcontent# in db ---> <cfset thistag.generatedcontent=“”></cfif>
Storing:
Result to user running test12.cfm
Test12.cfm
DoIt12.cfm
Previous slide
Next slide
Back to first slide
View graphic version
Home
Speakers
Photos
CFConf Central