I would try it without the cfoutputs and see what you get for your results.
If that doen't work I would only have one cfoutput, where the beginning is
at the top near the cfloop start, and the end tag of it is at the bottom
with the cfloop, that works fine for me on my cfloop statements.  And I do
some very complex statements.

Speaking, I am about to design a tag that all you need to do is add in your
filedlist of names and a DSN  for Updates, Inserts, and Delete.  I have hte
Delete tag workign already, and I have jsut recently used a series of
cfloops to generate my idea of a tag that will do a simular action as to the
reuseform tag.  it is pretty slick, and has cut my devel time in nearly half
the time I normally develop.

Donald R. Pavlik


-----Original Message-----
From: K. Bennani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 9: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