Ask a Question related to Macromedia ColdFusion, Design and Development.
-
lingo_user #1
iif() not working right...
I f I do this
<cfset class = Iif(i mod 2, "lightTableRow", "darkTableRow")>
I get this
"Variable lightTableRow is undefined."
I mean to do this in a short way:
<cfif i mod 2 EQ 0>
<cfset class = "darkTableRow">
<cfelse>
<cfset class = "lightTableRow">
</cfif>
to have table rows lternating in color... Is this the wong approach?
thanks,
Marc
lingo_user Guest
-
#38816 [Opn]: PHP code that was working perfectly recently stopped working.
ID: 38816 User updated by: mtoohee at gmail dot com -Summary: PHP code that was working perfectly recently stopped.... -
Macromedia Flash Player installed and working properly suddenlys stops working..
No idea what has caused the Flash player to stop working. This is not my machine but a relatives who has asked for help over the T'giving... -
div tag not working
hey guys, im having a little problem with my div tags in dreamweaver 8 ive got 4 div tags for a banner, links content and footer and each of them... -
Data not working on Label but is working in Datagrid
I am creating a simple website in Flex. I want to show different content from the database for home, about us, contact us, etc. I am using a CFC as... -
Working TableStyle Not Working on a Second DataGrid
I am having difficulty getting Tablestyles to work on a datagrid. I have 2 datasets, 1 filled and the other not. The first contains customer, stock... -
lingo_user #2
Re: iif() not working right...
Ok, I found it should be this:
<tr class="#IIF(i mod 2, DE('lightTableRow'), DE('darkTableRow'))#">
problem solved.
lingo_user Guest
-
Stressed_Simon #3
Re: iif() not working right...
Don't use iif(), I know it is less code but it actually runs slower than cfif.
See this link about best practices - [url]http://www.macromedia.com/devnet/mx/blueprint/articles/cfbp.html[/url]
Stressed_Simon Guest
-
Stressed_Simon #4
Re: iif() not working right...
You can use:-
<tr class="#IIF(i mod 2, DE('lightTableRow'), DE('darkTableRow'))#">
<tr class="<cfif i MOD 2>lightTableRow<cfelse>darkTableRow</cfif>">
Stressed_Simon Guest



Reply With Quote

