Ah yes, that was the word. However, you are incorrect. You can
generate output from a method with output=false. It just gets
discarded. This is an example:
<cffunction name="test" output="false" returnType="string">
<cfset var str = "">
<cfsavecontent variable="str">
<cfoutput>
#now()#
</cfoutput>
</cfsavecontent>
<cfreturn str>
</cffunction>
<cfoutput>#test()#</cfoutput>
I do this all the time when I'm creating a string that is complex.
It's easier to use cfsavecontent then a bunch of foo & goo & etc.
On 1/19/06, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> "tertiary" is the word you're looking for.
>
> Note that specifying output="false" won't help (though I'm not sure
> output="true" will), so the safest bet is to put the CFOUTPUT tags in
> there directly. With output="false", any generated output will be
> ignored anyway, and with output="true" you won't get a syntax error
> like you would if you actually nested CFOUTPUT tags.
>
> cheers,
> barneyb
>
> On 1/19/06, Raymond Camden <[EMAIL PROTECTED]> wrote:
> > I believe this is due to the "trinary" (not sure if that is a word)
> > nature of CFC methods. Basically, output in CFC work 3 different ways.
> > One way if you do NOT have output=, one if you do and its true, and
> > one if you do and it's false. Normall you do not leave it off as you
> > have below. If you add output=false, use cfoutput inside your
> > cfsavecontent, it should work as you expected.
> >
> > I believe Sean Corfield has a good blog on post on this "3-way" issue.
> > But to make things safe (and simple) just don' tleave it off.
> >
>
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
>
> Got Gmail? I have 100 invites.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230040
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54