Attribute validation error for tag cfloop

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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>&nbsp;</td><td>&nbsp;</td>
    <cfelse>
    <td>&nbsp;</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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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. ...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139