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>&nbsp;</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>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT face=3D"Times New =
Roman"=20
size=3D3>&lt;cfcase value=3D"doSomething"&gt;<BR>&nbsp; &lt;cfinclude=20
template=3D"actDoSomething.cfm"&gt;</FONT></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT face=3D"Times New =
Roman"=20
size=3D3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;cfif this =
variable is=20
true&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; =20
&lt;cfinclude template=3D"aQuery.cfm"&gt;</FONT></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2><FONT face=3D"Times New =
Roman"=20
size=3D3>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&lt;/cfif&gt;<BR>&lt;/cfcase&gt;</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>&nbsp;</DIV>
<DIV dir=3Dltr>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV></FONT>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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" &lt;</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>&gt;<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
  &lt;</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>&gt;<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>&lt;cfinclude=20
  template=3D"/Queries/aQuery.cfm"&gt;<BR><BR>Others let the fusebox =
itself handle=20
  this, like this:<BR><BR>&lt;cfcase value=3D"doSomething"&gt;<BR>&nbsp; =

  &lt;cfinclude template=3D"actDoSomething.cfm"&gt;<BR>&nbsp; =
&lt;cfinclude=20
  template=3D"aQuery.cfm"&gt;<BR>&lt;/cfcase&gt;<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>&lt;cfcase=20
  value=3D"doSomething"&gt;<BR>&nbsp; &lt;cfinclude=20
  template=3D"actDoSomething.cfm"&gt;<BR>&nbsp; &lt;cfif=20
  includeQuery&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;cfinclude=20
  template=3D"aQuery.cfm"&gt;<BR>&nbsp; =
&lt;/cfif&gt;<BR>&lt;/cfcase&gt;<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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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

Reply via email to