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
Goodfriend Computer Training
-----Original Message-----
From: J Winter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 9:48 AM
To: CF-Talk
Subject: Correctly using CFOUTPUT
Hi, I've always been curious about this. What is the correct way? Does it
matter?
Listing 1:
<CFOUTPUT>
<TABLE>
<TR>
<TD>#var1#</TD>
</TR>
<TR>
<TD>#var2#</TD>
</TR>
</TABLE>
</CFOUTPUT>
Listing 2:
<TABLE>
<TR>
<TD><CFOUTPUT>#var1#</CFOUTPUT></TD>
</TR>
<TR>
<TD><CFOUTPUT>#var2#</CFOUTPUT></TD>
</TR>
</TABLE>
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 <CFOUTPUT QUERY="q1"></CFOUTPUT> Listing 1 would always be
applicable.
Thanks for any help!
Josh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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