On Thursday 01 June 2006 16:48, Bruce Sorge wrote:
This is working great in Firefox, but not Nutscrape of M$ IE. Do these
browsers not understand the class attribute in the tablerow?
Set it on the td as well.
--
Tom Chiverton
This email
what does the style look like?
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241926
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
That did it. Thanks. Tom.
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241927
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
To: CF-Talk
Subject: Re: Alternating Rows issue with M$ IE 6.X
On Thursday 01 June 2006 16:48, Bruce Sorge wrote:
This is working great in Firefox, but not Nutscrape of M$ IE. Do these
browsers not understand the class attribute in the tablerow?
Set it on the td as well.
--
Tom Chiverton
You can style a TR just fine. Check your source. Randy's suggestion that
there's extra single quotes in there sounds like it might solve your issue.
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
Assuming you are doing this from a query
td iif(query.currentrow mod 2, de( bgcolor='bgcolor1'), de(
bgcolor='bgcolor2'))
M
-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 1:31 PM
To: CF-Talk
Subject: alternating rows
Does
CFIF QUERY.currentrow MOD 2change color/CFIF
christopher olive
cto, vp of web development, vp it security
atnet solutions, inc.
410.931.4092
http://www.atnetsolutions.com
-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 1:31 PM
To:
Does anyone remember the quick way to alternate row colors when
using MOD on
a recorcount?
Google does: http://www.google.com/search?q=CF+MOD+row+color
-Ron
BOOKS JUST WANNA BE FREE! http://BookCrossing.com/
__
Depends on how readable you want the code. ;)
cfif currentRow mod 2
tr bgcolor=foo
cfelse
tr bgcolor=goo
/cfif
This is what I normally use. However, you can also use IIF to make it
inline (and slower as well):
tr bgcolor=#IIF(currentRow mod 2,de(foo),de(goo))#
The syntax above
cfif query.recordcount mod 2 eq 1cfset rowcolor
=bluecfelsecfset rowcolor eq green
td bgcolor=#rowcolor#
..
/td
- Matt Small
-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 1:31 PM
To: CF-Talk
Subject: alternating rows
Does anyone
cfoutput query=myQuery
cfset bgcolor = ##CC
cfif RecordCount MOD 2
cfset bgcolor = ##99
/cfif
tr bgcolor=#bgcolor#
td
...
/td
/tr
/cfoutput
You can use and IIF function, but it is considerably slower that this
method. HTH.
--
SCOTT VAN VLIET
SENIOR
This is what I use...
trcfif qryName.currentrow mod 2 EQ 0 class=altRow/cfif
Justin Hansen
--
Uhlig Communications
Web Developer / Programmer
--
[EMAIL PROTECTED]
913-498-0123 ext 284
--
-Original Message-
From:
-
From: Justin Hansen [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 10:51 AM
Subject: RE: alternating rows
This is what I use...
trcfif qryName.currentrow mod 2 EQ 0 class=altRow/cfif
Justin Hansen
--
Uhlig Communications
Web
TR BGCOLOR=#iif(currentrow mod 2, DE('lightgrey'), DE('FF'))#
Doug Brown
- Original Message -
From: Christopher Olive [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 10:45 AM
Subject: RE: alternating rows
CFIF QUERY.currentrow MOD 2change color
Here's an alternative to the popular IIF() approach:
1. In your global style sheet, define:
oddrow { background-color: #f0f0f0; }
evenrow { }
2. In your script (or Application.cfm) add:
CFSET EvenOdd=ListToArray(evenrow,oddrow)
3. In your query output, do:
TR
How about
tr bgcolor=cfif Evaluate(currentrow mod 2) is
1FFcfelse00/cfif
Helen
-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 13:31
To: CF-Talk
Subject: alternating rows
Does anyone remember the quick way to alternate
3:06 PM
To: CF-Talk
Subject: RE: alternating rows
How about
tr bgcolor=cfif Evaluate(currentrow mod 2) is
1FFcfelse00/cfif
Helen
-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 13:31
To: CF-Talk
Subject
Message-
From: Helen Simpson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 3:06 PM
To: CF-Talk
Subject: RE: alternating rows
How about
tr bgcolor=cfif Evaluate(currentrow mod 2) is
1FFcfelse00/cfif
Helen
-Original Message-
From: Tangorre, Michael T
PROTECTED]]
Sent: Monday, March 18, 2002 14:56
To: CF-Talk
Subject: RE: alternating rows
Here's an alternative to the popular IIF() approach:
1. In your global style sheet, define:
oddrow { background-color: #f0f0f0; }
evenrow { }
2. In your script (or Application.cfm) add:
CFSET EvenOdd=ListToArray
Also perfect time for a UDF:
function bgcolor_switch(ROW) {
color = CDCDCD;
if (ROW mod 2 is 1) {
color=ff;
}
return color;
}
Code:
tr bgcolor=#bgcolor_switch(get_report_data.currentrow)#
Thanks,
Sam
Sam Farmer - Senior Developer
Certified Advanced ColdFusion 5 Developer
INTELIX -
20 matches
Mail list logo