mod command to alter row color

2004-11-02 Thread Robert Orlini
I know this is an easy one, but can't find the right code. How do I have CF alternate color for each row of a table? Anyone have the code please? Thanks. Robert O. ~| Purchase from House of Fusion, a Macromedia Authorized

Re: mod command to alter row color

2004-11-02 Thread jonese
put this in your tr tag cfif query.CurrentRow MOD 2 EQ 0bgcolor=##00cfelsebgcolor=##f/cfif it think that's right. On Tue, 2 Nov 2004 13:24:19 -0500, Robert Orlini [EMAIL PROTECTED] wrote: I know this is an easy one, but can't find the right code. How do I have CF alternate color

RE: mod command to alter row color

2004-11-02 Thread Tangorre, Michael
From: Robert Orlini [mailto:[EMAIL PROTECTED] I know this is an easy one, but can't find the right code. How do I have CF alternate color for each row of a table? Anyone have the code please? cfif queryName.CurrentRow MOD 2 EQ 0 Red cfelse Blue /cfif Mike

Re: mod command to alter row color

2004-11-02 Thread Jim McAtee
-Talk [EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 11:24 AM Subject: mod command to alter row color I know this is an easy one, but can't find the right code. How do I have CF alternate color for each row of a table? Anyone have the code please? Thanks. Robert O

Re: mod command to alter row color

2004-11-02 Thread Al Everett
--- Robert Orlini [EMAIL PROTECTED] wrote: How do I have CF alternate color for each row of a table? Anyone have the code please? I wrote a UDF to do just that. http://cflib.org/udf.cfm?ID=901 On of its perks is that you're not limited to two colors. You can put as many into the list of

Re: mod command to alter row color

2004-11-02 Thread Barney Boisvert
Get rid of that evaluate, it's unneeded: style tr.alt1 { background-color: #fff; } tr.alt0 { background-color: #ffc; } /style cfoutput table cfloop query=myQuery tr class=alt#currentRow MOD 2# ... /tr /cfloop /table /cfoutput On Tue, 2 Nov 2004 11:42:55 -0700, Jim McAtee [EMAIL

Re: mod command to alter row color

2004-11-02 Thread Jim McAtee
It's necessary in CF5 and earlier. - Original Message - From: Barney Boisvert [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 11:54 AM Subject: Re: mod command to alter row color Get rid of that evaluate, it's unneeded: style tr.alt1 { background

RE: mod command to alter row color

2004-11-02 Thread Pascal Peters
This only works in CFMX. But you could use another function for numeric values (like val()) Pascal -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: 02 November 2004 19:54 To: CF-Talk Subject: Re: mod command to alter row color Get rid of that evaluate

Re: mod command to alter row color

2004-11-02 Thread Matt Robertson
Two more ways to skin this cat. First a real old one tr bgcolor=#iif(GetData.CurrentRow MOD 2, DE(variables.RowColor1), DE(variables.RowColor2))# and what I use now. Store the row colors in a var in application.cfm or something: my.RowColors=##EDEDED,##FBFBFB; and then use this in the table:

RE: mod command to alter row color

2004-11-02 Thread Robert Orlini
command to alter row color put this in your tr tag cfif query.CurrentRow MOD 2 EQ 0bgcolor=##00cfelsebgcolor=##f/cfif it think that's right. On Tue, 2 Nov 2004 13:24:19 -0500, Robert Orlini [EMAIL PROTECTED] wrote: I know this is an easy one, but can't find the right code. How do

Re: mod command to alter row color

2004-11-02 Thread Bryan Stevenson
look into a conditional loop then...as I'm sure you'd want to break out at some point ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web:

Re: mod command to alter row color

2004-11-02 Thread Joe Rinehart
of the code: cfloop from=1 to=10 index=i How would I make it infinite? I don't want it to end at the 10th row? Robert O. -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 1:35 PM To: CF-Talk Subject: Re: mod command to alter row color put

Re: mod command to alter row color

2004-11-02 Thread Jochem van Dieten
Robert Orlini wrote: I know this is an easy one, but can't find the right code. How do I have CF alternate color for each row of a table? Don't do it in CF, use CSS and javascript and ship it off to the client for processing. Example (BSD licensed) at

Re: mod command to alter row color

2004-11-02 Thread Dave Francis
.org/TR/xhtml11/DTD/xhtml11.dtd'. Line 85, Position 2 %xhtml-prefw-redecl.mod; - Original Message - From: Jochem van Dieten [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 3:00 PM Subject: Re: mod command to alter row color Robert Orlini wrote: I know

Re: mod command to alter row color

2004-11-02 Thread Jochem van Dieten
Dave Francis wrote: Don't want to start a war here but I really disagree. The less that browsers have to do, the less chance they have to be inconsistent (with each other and w3c). If it works now, use it. I find it hard to believe there will ever be new user agents released that are

Re: mod command to alter row color

2004-11-02 Thread Matt Robertson
That page doesn't work in IE, although Firefox renders it. With Firefox' desired market penetration curve you should be visible to 10% of browsers within 5 years. Its wonderful here over on the Dark Side. Couldn't you meet us halfway? Just bite the head off of *one* bat. Just one. :D man I

Re: mod command to alter row color

2004-11-02 Thread dave
wont be no 10 yrs will be about 2 more months http://www.eweek.com/article2/0,1759,1706694,00.asp?kc=ewnws110204dtx1k599 get rid of the crap http://browsehappy.com/ -- Original Message -- From: Matt Robertson [EMAIL PROTECTED] Reply-To: [EMAIL

Re: mod command to alter row color

2004-11-02 Thread Jordan Michaels
Matt Robertson wrote: That page doesn't work in IE, although Firefox renders it. With Firefox' desired market penetration curve you should be visible to 10% of browsers within 5 years. Its wonderful here over on the Dark Side. Couldn't you meet us halfway? Just bite the head off of *one* bat.

Re: mod command to alter row color

2004-11-02 Thread Matt Robertson
Actually I booted IE, Outlook and Outlook Express shortly after GDIPlus, and instantly after MS announced they weren't upgrading IE unless you had XPeee. So only 92.9% of users are using IE, and this is after a plunge in market share. Anyway the same article points to all Mozilla browsers,

Re: mod command to alter row color

2004-11-02 Thread dave
then do your part on and spread the word! :) the only reason i have ANYTHING m$ on my comp is actually a macromedia issue until they do something different with the damn licensing methods and have it able to run on linux im stuck with this crap! ar -- Original Message

Re: mod command to alter row color

2004-11-02 Thread Jochem van Dieten
Matt Robertson wrote: That page doesn't work in IE, although Firefox renders it. With Firefox' desired market penetration curve you should be visible to 10% of browsers within 5 years. Its wonderful here over on the Dark Side. Couldn't you meet us halfway? There has been a case where the