House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

cfoutput in a cfouput

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chad Gray
05/28/2008 09:48 AM

Since when have we been able to nest cfoutputs? I have always thought that you could not do this.  Maybe it was a CF4.5/5.0 thing and in never learned it was possible in MX? I just tried this and it works in my CF8 installation: <cfoutput query="foo" group="id"> #foo.id#<br> <cfoutput>#foo.b#<br></cfoutput> </cfoutput

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark Atkinson
05/28/2008 09:54 AM

Good morning Chad, Try it without the group attribute in the foo query output. Cheers, Mark Chad Gray wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andy Matthews
05/28/2008 10:47 AM

You've always been able to nest outputs when placed within a grouped output. Since when have we been able to nest cfoutputs? I have always thought that you could not do this.  Maybe it was a CF4.5/5.0 thing and in never learned it was possible in MX? I just tried this and it works in my CF8 installation: <cfoutput query="foo" group="id"> #foo.id#<br> <cfoutput>#foo.b#<br></cfoutput> </cfoutput

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Charlie Griefer
05/28/2008 10:55 AM

On Wed, May 28, 2008 at 6:47 AM, Chad Gray <cgray@careyweb.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- you've always been able to nest cfoutputs within one another when the outer cfoutput made use of the "group" attribute.  i'm pretty sure the docs have always, even back in the day, said something to the effect of "you cannot nest <cfoutput> tags *unless the outermost tag used the group attribute*". as an aside... as of cfmx (i believe), it became possible to do <cfoutput><cfoutput>#now()#</cfoutput></cfoutput>.  it's not something that i recall ever being announced as a "feature" ...or "bug"... it just started working. -- A byte walks into a bar and orders a pint. Bartender asks him "What's wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I thought you looked a bit off."

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Faircloth
05/28/2008 11:38 AM

But why would you ever want to next cfoutput tags? Rick ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Charlie Griefer
05/28/2008 11:42 AM

I can't imagine a scenario where you would. that's why i alluded to the fact that you can now do it (as of MX) as being either a "feature" or a "bug" :)   But the fact remains that pre-MX it would throw an error, where post-MX it does not. On Wed, May 28, 2008 at 8:37 AM, Rick Faircloth <Rick@whitestonemedia.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Phillip Vector
05/28/2008 11:46 AM

I guess to make things easier for those people just starting out... My god.... Have I officially passed into "Old Time ColdFusion Geezer" after 8 years? :) On Wed, May 28, 2008 at 8:41 AM, Charlie Griefer <charlie.griefer@gmail.com> wrote: > I can't imagine a scenario where you would. > > that's why i alluded to the fact that you can now do it (as of MX) as > being either a "feature" or a "bug" :)   But the fact remains that > pre-MX it would throw an error, where post-MX it does not.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Faircloth
05/28/2008 12:08 PM

Hate to break it to you...but you've been in the "Geezer" category for a couple of years now. :oP Rick > I guess to make things easier for those people just starting out... > > My god.... Have I officially passed into "Old Time ColdFusion Geezer" > after 8 years? :) >

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Phillip Vector
05/28/2008 12:27 PM

BAH!!! Heh.. I caught myself thinking "Back during ColdFusion 5, I learned the hard way not to nest cfoutputs... These kids today have it easy". :) On Wed, May 28, 2008 at 9:07 AM, Rick Faircloth <Rick@whitestonemedia.com> wrote: > Hate to break it to you...but you've been in the "Geezer" category > for a couple of years now. :oP

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gerald Guido
05/28/2008 12:26 PM

>> My god.... Have I officially passed into "Old Time ColdFusion Geezer" after 8 years? :) Ha! Look here sonny. Back in my day when we wanted to query a database we did it by rubbing two sticks together.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
05/28/2008 12:25 PM

----- Excess quoted text cut - see Original Post for more ----- You have been able to nest CFOUTPUTs using the GROUP attribute since version 2, at least. You can now nest CFOUTPUTs generally since version 6, I believe. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists