This is a multi-part message in MIME format.
------=_NextPart_000_000F_01C0C1A1.B28F3900
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hey Hal,=20
I usually put my conditional logic in the index page itself. Sometimes I =
need it to decide which query to use based on whatever variable I've =
passed to the fuseaction. Like this:
<cfcase value=3D"doSomething">
<cfinclude template=3D"actDoSomething.cfm">
<cfif this variable is true>
<cfinclude template=3D"aQuery.cfm">
</cfif>
</cfcase>
I do try to keep all my queries and act and dsp files clearly in the =
index page since I try to look there first if there's a problem.
Stephanie Nordenhaug
Web Developer - Orbitools
[EMAIL PROTECTED]
(404) 609 7820 ext. 277
=20
Date: Mon, 09 Apr 2001 08:18:59 -0400
From: "Hal Helms" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Surveying the community
Message-ID: <[EMAIL PROTECTED]>
Folks,
Question on how you handle queries: Some people always include query =
files
in other files, like this in actDoSomething.cfm:
<cfinclude template=3D"/Queries/aQuery.cfm">
Others let the fusebox itself handle this, like this:
<cfcase value=3D"doSomething">
<cfinclude template=3D"actDoSomething.cfm">
<cfinclude template=3D"aQuery.cfm">
</cfcase>
My question is this: if you use the second method, how do you handle =
the
situation where you would only want to call "aQuery.cfm" IF a variable =
in
"actDoSomething.cfm" was set to true? Do you do it in the fusebox, =
like
this:
<cfcase value=3D"doSomething">
<cfinclude template=3D"actDoSomething.cfm">
<cfif includeQuery>
<cfinclude template=3D"aQuery.cfm">
</cfif>
</cfcase>
Or do you do something else? I'm just trying to see how different =
developers
handle this situation.
Hal Helms
Team Allaire
[ See www.halhelms.com for info on training classes ]
------=_NextPart_000_000F_01C0C1A1.B28F3900
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2>Hey Hal,=20
</FONT></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>I usually put my conditional =
logic in the=20
index page itself. Sometimes I need it to decide which query to use =
based on=20
whatever variable I've passed to the fuseaction. Like this:</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT face=3D"Times New =
Roman"=20
size=3D3><cfcase value=3D"doSomething"><BR> <cfinclude=20
template=3D"actDoSomething.cfm"></FONT></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT face=3D"Times New =
Roman"=20
size=3D3> <cfif this =
variable is=20
true><BR> =
=20
<cfinclude template=3D"aQuery.cfm"></FONT></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT face=3D"Times New =
Roman"=20
size=3D3> =20
</cfif><BR></cfcase></FONT><BR></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>I do try to keep all my =
queries and act and=20
dsp files clearly in the index page since I try to look there first if =
there's a=20
problem.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV dir=3Dltr>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Stephanie Nordenhaug<BR>Web Developer - =
Orbitools<BR><A=20
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A><BR>(4=
04) 609=20
7820 ext. 277</FONT></DIV></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2> </DIV></FONT>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3>Date: Mon, 09=20
Apr 2001 08:18:59 -0400<BR>From: "Hal Helms" <</FONT><A=20
href=3D"mailto:[EMAIL PROTECTED]"><FONT face=3D"Times New =
Roman"=20
size=3D3>[EMAIL PROTECTED]</FONT></A><FONT face=3D"Times New =
Roman"=20
size=3D3>><BR>To: </FONT><A=20
href=3D"mailto:[EMAIL PROTECTED]"><FONT face=3D"Times New =
Roman"=20
size=3D3>[EMAIL PROTECTED]</FONT></A><BR><FONT=20
face=3D"Times New Roman" size=3D3>Subject: Surveying the =
community<BR>Message-ID:=20
<</FONT><A=20
=
href=3D"[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]"><F=
ONT=20
face=3D"Times New Roman"=20
=
size=3D3>[EMAIL PROTECTED]</FONT></A=
><FONT=20
face=3D"Times New Roman" size=3D3>><BR><BR>Folks,<BR><BR>Question =
on how you=20
handle queries: Some people always include query files<BR>in other =
files, like=20
this in actDoSomething.cfm:<BR><BR><cfinclude=20
template=3D"/Queries/aQuery.cfm"><BR><BR>Others let the fusebox =
itself handle=20
this, like this:<BR><BR><cfcase value=3D"doSomething"><BR> =
<cfinclude template=3D"actDoSomething.cfm"><BR> =
<cfinclude=20
template=3D"aQuery.cfm"><BR></cfcase><BR><BR>My question is =
this: if=20
you use the second method, how do you handle the<BR>situation where =
you would=20
only want to call "aQuery.cfm" IF a variable =
in<BR>"actDoSomething.cfm" was=20
set to true? Do you do it in the fusebox, =
like<BR>this:<BR><BR><cfcase=20
value=3D"doSomething"><BR> <cfinclude=20
template=3D"actDoSomething.cfm"><BR> <cfif=20
includeQuery><BR> <cfinclude=20
template=3D"aQuery.cfm"><BR> =
</cfif><BR></cfcase><BR><BR>Or=20
do you do something else? I'm just trying to see how different=20
developers<BR>handle this situation.<BR>Hal Helms<BR><BR>Team =
Allaire<BR><BR>[=20
See </FONT><A href=3D"http://www.halhelms.com"><FONT face=3D"Times New =
Roman"=20
size=3D3>www.halhelms.com</FONT></A><FONT face=3D"Times New Roman" =
size=3D3> for=20
info on training classes =
]</FONT><BR><BR><BR></DIV></FONT></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_000F_01C0C1A1.B28F3900--
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists