CFSILENT and SuppressWhiteSpace are a couple of good things to look at.

http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=ColdFusion_Documentation&file=00000336.htm

http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=ColdFusion_Documentation&file=00000312.htm

:)

Roland

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 10:57 AM
To: [email protected]
Subject: [CFCDev] cffunction output attribute, onRequestStart login problem

I learned something about coldfusion functions that I didn't know before:
if you call a function that has output="true" from inside a function with
output="false", nothing gets displayed. Ex:



<cffunction name="testoutput"
output="true" returntype="void">

        Don't want this to show.

        <cfinvoke method="showoutput"/>

</cffunction>

<cffunction name="showoutput" output="false" returntype="void">

        I want this to show.

</cffunction>

<cfinvoke method="testoutput"/>



I only mention this because of a problem it's causing me.



I'm using the
Application.cfc onRequestStart method to do my auth/login stuff. When
someone
needs to login, I need to present them with a login form. <cfinclude .../>
won't show if output="false" for the function. I tried to put my cfinclude
inside a cffunction with output="true", but that didn't solve my problem
either.



I would like to keep my whitespace generation to a minimum without tightly
formatting my onRequestStart method.



Any ideas?


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]







----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to