Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
brokerandy25 #1
Attribute validation error for tag cfloop
I am trying to dynamically generate a "photo album" output into a table with
corresponding captions:
The out put should be
1 2
1.c 2.c
3 4
3.c 4.c
with 1, 2, 3, 4 being the pictures and 1.c 2.c etc. being the captions
currently I am here
<cfoutput query="Recordset1" group="category">
<table cellpadding="2" cellspacing="0" border="1">
<tr>
<cfloop query="PictureURL">
<cfif NOT CurrentRow Mod 2>
<td><img src="#PictureURL#"
alt="undefined.#PictureURL#"><br>#caption#</td></tr>
<cfif CurrentRow NEQ RecordCount><tr></cfif>
<cfelse>
<td><img src="#PictureURL#" alt="undefined.#PictureURL#"><br>#caption#</td>
<cfif CurrentRow EQ RecordCount>
<cfif CurrentRow Mod 1>
<td> </td><td> </td>
<cfelse>
<td> </td>
</cfif>
</tr>
</cfif>
</cfif>
</cfloop>
</table>
</cfoutput>
I get the out put I am looking for, but I am getting an Attribute validation
error for tag cfloop. What is wrong? I can't figure it out. .
Maybe I have been staring at the code too long. . . . . . .
Thank you for the assistance,
Andy
[url]http://www.indianaevenings.com[/url]
brokerandy25 Guest
-
Attribute validation error for tag CFQUERYPARAM.
I have a page that lets the user upload an image to change the logo of the website. It works fine on ColdFusion MX7 but on earlier versions I get... -
cfloop error
I am getting an error that is resolving to the closing tag for the </cfloop>. Any Ideas? <cfoutput query="Recordset1" group="category"> <table... -
attribute validation error for tag cfchartdata
Hello world! I'm trying to use a variable in my chart, but I'm getting the error: "Attribute validation error for tag cfchartdata. The value of... -
cfmail - Attribute validation error for tag CFMAIL.
I'm getting the error ' Attribute validation error for tag CFMAIL.' on the code below. All its doing is outputting a text string to the TO: field. ... -
CFLOOP Error?
I keep getting an error that says that I need to have a CFLOOP end tag? The bolded line is where Coldfusion says the error is occurring: <cfquery... -
Fernis #2
Re: Attribute validation error for tag cfloop
For starters, if PictureURL is a name of a query, how are you supposed to
display that with an <img> tag? :-)
Do you have a <CFQUERY> that is named "pictureURL"? Why are you referring to
two different queries?
Fernis Guest
-
brokerandy25 #3
Re: Attribute validation error for tag cfloop
Duh . . . I knew it would be something stupid.
but the CFMX server is telling me the error is in line 166 wich is the close tag for the cfloop (</cfloop>)
brokerandy25 Guest



Reply With Quote

