Hi Scott, Erki, Donald and Bert
Thanks for your reply.
The problem comes from my array.
It's content was setup by the following code :
<CFLOOP Query="getSpecialities">
<CFSET
ArticleSpecialities[ArrayLen(ArticleSpecialities)+1][1]="<cfoutput>#SpecialityId#</cfoutput>">
<CFSET
ArticleSpecialities[ArrayLen(ArticleSpecialities)][2]="<cfoutput>#Title#</cfoutput>">
<CFSET ArticleSpecialities[ArrayLen(ArticleSpecialities)][3]="0">
</CFLOOP>
Like you can see, I've used <cfoutput> within this loop which was a mistake... This
tag is not necessary when looping over a Query...
I have to wake-up today!!!
Thanks you all
Kamal
----- Original Message -----
From: "Scott Knaub" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 27, 2001 4:42 PM
Subject: RE: Strange CFLOOP behavior
> Move the CFOUTPUT outside of the INPUT tag and see if that helps:
> <cfoutput>
> <input type="Checkbox" name="checkbox#ArticleSpecialities[LoopCount][1]#"
> value="Yes" <cfif #ArticleSpecialities[LoopCount][3]# IS
"1">checked</cfif>>
> </cfoutput>
>
>
>
>
> -----Original Message-----
> From: K. Bennani [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 8: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