Nat said that? You end up with lots of "white space" sent to the browser -
in v. 4.01. Don't know about v.4.5. We had a search results page that
returned 7 MB of white space to the browser because we used <cfoutput
query="blah"> rather than <cfloop query="blah">. There were a couple smaller
things outputting white space too, but the way we looped over the query had
the most impact. If you put <cfoutput></cfoutput> around the whole page, all
the cf processing in the page while generate white space. If you're looping
over many records that white space can add up. We got our 7 MB output down
to 750 K. Just a thought...

---
Jeffrey B. Marsh
Professionals built the Titanic.
Amateurs built the Ark.

-----Original Message-----
From: McCollough, Alan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 9:28 AM
To: Fusebox
Subject: RE: Strange CFLOOP behavior

Get rid of all those CFOUTPUTS! Here is a tip I snagged from Nat, or Stan or
whoever... Just start each display page with CFOUTPUT and end it with
/CFOUTPUT. Design everything in the middle to work in the context of
CFOUTPUT (that means using CFLOOP with queries), and you'll cure all those
headaches. The additional overhead on the server is practically
unmeasurable, and its a heck of a lot easier to code.

That Stan guy, I hope he starts doing seminars!

> -----Original Message-----
> From: K. Bennani [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 5:17 AM
> To:   Fusebox
> Subject:      Strange CFLOOP behavior
>
> Hi,
>
> This is not a fusebox specific question but I have a strange behavior in a
> code for a Fusebox application.
>
> I have a CFLOOP in a Form with the following code :
>
> <CFLOOP INDEX="LoopCount" FROM="1" TO="#SpecialitiesCount#">
>     <input type="Checkbox"
> name="checkbox<cfoutput>#ArticleSpecialities[LoopCount][1]#</cfoutput>"
> value="Yes" <cfif #ArticleSpecialities[LoopCount][3]# IS
> "1">checked</cfif>>
>     <cfoutput>#Trim(ArticleSpecialities[LoopCount][2])#</cfoutput><BR>
> </CFLOOP>
>
> where ArticleSpecialities is a 2 dimensional Array.
>
> When this page is displayed, everything seems fine unless I display the
> source in my browser and the source show a <CFOUTPUT> tag???
>
> See below :
>      <input type="Checkbox" name="checkbox<cfoutput>1</cfoutput>"
> value="Yes" >
>      <cfoutput>Pneumologie</cfoutput><BR>
>     
>      <input type="Checkbox" name="checkbox<cfoutput>2</cfoutput>"
> value="Yes" >
>      <cfoutput>Cardiologie</cfoutput><BR>
>     
>      <input type="Checkbox" name="checkbox<cfoutput>4</cfoutput>"
> value="Yes" >
>      <cfoutput>Cancerologie</cfoutput><BR>
>     
>      <input type="Checkbox" name="checkbox<cfoutput>5</cfoutput>"
> value="Yes" >
>      <cfoutput>Dermatologie</cfoutput><BR>
>
> Is this a bug or what am I doing wrong?
>
> Thanks
> Kamal
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to