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