ColdFusion 5.0.If I've got a cfsilent block and wish to cfinclude
another template that generates output to the browser, is there a means of
turning off cfsilent from within the included template?
cfsilent
[do stuff]
cfif error_condition
cfinclude template=error_message.cfm
cfabort
/cfif
[do
If i'm doing something like that then this is how I do it...
cfsilent
[do stuff]
cfif error_condition
cfsavecontent variable=errormessage
cfinclude template=error_message.cfm
/cfsavecontent
cfelse
[do more stuff]
/cfif
/cfsilent
cfif IsDefined(errormessage)
: Wednesday, July 28, 2004 10:36 AM
Subject: cfsilent how to...
ColdFusion 5.0.If I've got a cfsilent block and wish to cfinclude
another template that generates output to the browser, is there a means of
turning off cfsilent from within the included template?
cfsilent
[do stuff]
cfif error_condition
that's never worked for me... the cfsavecontent tag shouldn't generate
any content because it's just looking at the output buffer... which
doesn't receive any content while it's inside the cfsilent tags...
afaik there's not any way to output anything inside cfsilent tags...
you can still use
that's never worked for me... the cfsavecontent tag shouldn't generate
any content because it's just looking at the output buffer... which
doesn't receive any content while it's inside the cfsilent tags...
Works great for me but then I guess I am testing in CFMX 6.1 .
Paul
[Todays
CFSILENT works like CFSAVECONTENT except the generated content is
thrown away, i believe.So it operates at the HTML buffer level,
unlike CFSETTING.Not sure about CFPROCESSINGDIRECTIVE
cheers,
barneyb
On Wed, 28 Jul 2004 14:10:55 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote:
that's never
6 matches
Mail list logo