[thelist] Html question on coldfusion v2
Sarah Sweeney
mr.sanders at designshift.com
Wed Feb 2 10:43:33 CST 2005
> I tried this way but it return an error after the tag <cfelse>... Can you help me in any other way? Thank you in advanced
>
> <cfoutput query="concelhos_report">
> <tr>
> <td height="19" ><cfif Descricao EQ "Não possui endereço WEB"><font face="Arial" size="2" color="#000000">#Descricao#
> <cfelse><a href="#URL#" target="new">#Descricao#</a></font></td>
> <td height="19" ><font face="Arial" size="2" color="#000000">#Concelho#</font></td>
> <td height="19" ><cfif Descricao EQ "Não possui endereço WEB"><font face="Arial" size="2" color="#000000">#Web#
> <cfelse><a href="#Web#" target="new">#Web#</a></font></td>
> </tr>
> </cfoutput>
When you include this inside <cfoutput> tags, you'll need to change this:
color="#000000"
to this:
color="##000000"
Otherwise CF thinks you're trying to output a variable or other dynamic
tidbit.
--
Sarah Sweeney :: Web Developer & Programmer
Portfolio :: http://sarah.designshift.com
Blog :: http://hardedge.ca
More information about the thelist
mailing list