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 <cfset > to generate variables since the cfset tag
doesn't deal with the output buffer, but afaik not cfsavecontent.

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1

> 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")>
>     <cfoutput>#errormessage#</cfoutput>
>     <cfabort>
> </cfif>

> [rest of code not needing to be in CFSILENT]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to