I think this is not so great either.  You are making two calls to the server
for no real good reason, when only one is required -- unless it's to prevent
the user from refreshing the act_ , which is an exception worthy of a URL_
at the end of the action.

you can still cache the query if you want to.  I reach my limit on the
fusebox technique when it will clearly slow things down and make unnecessary
server calls.  His example of having an act_ and then a dsp_ is perfectly
fine, IMHO.

.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Marc Funaro, President
Advantex Technical Consulting Services
5547 State Highway 12
Norwich, NY 13815
Phone:  607-336-6895
Fax: 801-383-4864
Internet: http://www.advantex.net
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


-----Original Message-----
From: John Quarto-vonTivadar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 12:00 PM
To: Fusebox
Subject: Re: Surveying the community


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>

one thing I'm noticing is that the folks who are pro "include it in the
fusebox!" are also tending to be the ones not using XFA's.  is the
correlation cause-and-effect? Are people not using XFA's because they're not
properly understood, or because they're consciously thinking that XFA's are
sequentialy related to XFB jsut because of the lettering?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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