On 23 Jun 2005 14:56:40 -0000, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
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]
