Let me propose two pseudo-code-ish solutions:
Solution A:
        If (fuseaction is "convincePMcE") {
                Set onExit = "displayexample";
                Include file "act_convincePMcE.cfm"
        ElseIf (fuseaction is "displayexample") {
                Include file "dsp_example.cfm";
        }



Solution B:
        If (fuseaction is "aDecentExample") {
                Include file "qry_getAGoodReason.cfm";
                Include file "act_ConvinceJQvT.cfm";
                Include file "dsp_example.cfm";
        }


Ideology aside, which is the preferred solution?

LeeBB.

ps., you guys should just celebrate that Patrick and I are agreeing on
something ;-)


-----Original Message-----
From: John Quarto-vonTivadar [mailto:[EMAIL PROTECTED]]

Patrick that is a awful example! :)  You're using the your fusebox to
substitute for proper query caching. !

(also see below)

>
> <cfcase value="aDecentExample">
>  <cfinclude template="qry_getAGoodReason.cfm">
>  <cfinclude template="act_ConvinceJQvT.cfm"> <!--- uses
> qry_getAGoodReason.cfm --->
>  <cfinclude template="dsp_example.cfm"> <!--- also uses
> qry_getAGoodReason.cfm --->
> </cfcase>
>

it looks to me like you're doing two things with one fuse. you could have
easily written this as

<cfcase value="convincePMcE">
    <cfset XFA.onExit = "displayexample">
    <cfinclude template="act_convincePMcE.cmf">
    <!--- some people may choose to put another cfinclude to a "url_" file
here; XFB lets the XFA's handle it --->
</cfcase>

<cfcase value="displayexample">
    <cfinclude template="dsp_example.cfm">
</cfcase>

....


IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to