"Never" is too strong a word. If you have a CFOUTPUT at the top of the page and
another CFOUTPUT at the bottom of the page, it's not better to enclose the entire page
in one CFOUTPUT tag as you're suggesting.
Extraneous code, no. Extra code, yes - if it improves performance, reliability, or
small that it was not worthy of making a fuss over.
Brian
- Original Message -
From: "Bill Killillay" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 3:35 PM
Subject: RE: Correctly using CFOUTPUT
> Since when is CFLOOP &quo
lillay" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 4:35 PM
Subject: RE: Correctly using CFOUTPUT
> Since when is CFLOOP "faster" then CFOUTPUT? I have seen on this list
many,
> many times that CFLOOP is one of the slow
Thanks,
Josh
-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 2:00 PM
To: CF-Talk
Subject: RE: Correctly using CFOUTPUT
> Hi, I've always been curious about this. What is the correct way? Does it
> matter?
> Is ther
OUTPUT and CFLOOP,
I say that CFOUTPUT with a query attribute beats CFLOOP hands down every
day...
-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 2:00 PM
To: CF-Talk
Subject: RE: Correctly using CFOUTPUT
> Hi, I've always been
> Hi, I've always been curious about this. What is the correct way? Does it
> matter?
> Is there an unwritten rule; if there are more than 4 (or ?) vars in a page
> Listing 1 is a good way to do it else Listing 2 is recommended?
> I'm assuming when using Listing 1 would
> always be applicable.
You should never add extraeneous code into your templates, therefore Listing
1 would be the better candidate.
---mark
Mark Warrick - Fusioneers.com
Email: [EMAIL PROTECTED]
Phone: 714-547-5386
http://www.fusioneers.com
http://www.warrick.net
=
would the pros do in this situation?
Josh
-Original Message-
From: Katherine Maltby [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 10:00 AM
To: CF-Talk
Subject: RE: Correctly using CFOUTPUT
It depends how you want the results to be displayed, but I'd recommend
putting the
It depends how you want the results to be displayed, but I'd recommend
putting the cfoutput tags inside the table before the as otherwise
you'll open a new table for each line of results, which isn't good if you're
pulling rows and rows back from a database.
Kath
Web Production Director
--
I personally have a tendency to use Listing 1's format more often than I use
the one in Listing 2. The only difference is that I put in my table tags
BEFORE my CFOUTPUT tags, that way if I'm looping through a query's results,
I don't have a new table being created for each record. :)
Scott Wolf
10 matches
Mail list logo