RE: Why wouldn't the first cell alternate colors with this code?

2007-09-28 Thread Rick Faircloth
Ooh... even smarter, Claude!

Thanks,

Rick


-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 28, 2007 9:20 AM
To: CF-Talk
Subject: Re: Why wouldn't the first cell alternate colors with this code?

 >>

and even simpler: call your classes bg0 and bg1 and use




-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289727
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Why wouldn't the first cell alternate colors with this code?

2007-09-28 Thread Claude Schneegans
 >>

and even simpler: call your classes bg0 and bg1 and use




-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289720
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Scott Weikert
> I think you meant to use get_events.currentrow.
>   
And, all other things being equal, you might try:

#dateformat(get_events.event_date, "ddd")#

That way, if you want to change something else in that cell, you don't have to 
do it twice.



~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289630
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Rick Faircloth
Thanks for the tip, Gary!

Rick



-Original Message-
From: gary gilbert [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 8:18 AM
To: CF-Talk
Subject: Re: Why wouldn't the first cell alternate colors with this code?

Hi Rick,

If I may make a suggestion, put your style info into two classes and then
this:


#dateformat(get_events.event_date, "ddd")#

   #dateformat(get_events.event_date, "ddd")#



Will become:



...High{
padding-top: 1px;
padding-bottom: 2px;
width:35px;
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #eee;
color: black;
font-size: 11px;
font-weight: normal;
text-align: center;
}

...Low {
padding-top: 1px;
padding-bottom: 2px;
width: 35px;
border-left:1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #ccc;
color:black;
font-size: 11px;
font-weight: normal;
text-align:center;
}






  #dateformat(get_events.event_date, "ddd")#


.

Makes your code a bit more readable and weight a bit less.

Regards,
-- 
Gary Gilbert
http://www.garyrgilbert.com/blog




~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289621
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Rick Faircloth
Another good suggestion!

Thanks, Chris!

Rick

-Original Message-
From: Peterson, Chris [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 8:51 AM
To: CF-Talk
Subject: RE: Why wouldn't the first cell alternate colors with this code?

You could even write a quick udf to do this and make it even more
readable:


Function altRow(row) {
if (row mod 2 eq 1) {
return '.high';
}
else {
return '.low';
}
}
 

Then just do:


  #dateformat(get_events.event_date, "ddd")#


Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer

-Original Message-
From: gary gilbert [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 8:18 AM
To: CF-Talk
Subject: Re: Why wouldn't the first cell alternate colors with this
code?

Hi Rick,

If I may make a suggestion, put your style info into two classes and
then
this:


#dateformat(get_events.event_date, "ddd")# 
   #dateformat(get_events.event_date, "ddd")#



Will become:



High{
padding-top: 1px;
padding-bottom: 2px;
width:35px;
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #eee;
color: black;
font-size: 11px;
font-weight: normal;
text-align: center;
}

Low {
padding-top: 1px;
padding-bottom: 2px;
width: 35px;
border-left:1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #ccc;
color:black;
font-size: 11px;
font-weight: normal;
text-align:center;
}


.



  #dateformat(get_events.event_date, "ddd")# 

..

Makes your code a bit more readable and weight a bit less.

Regards,
--
Gary Gilbert
http://www.garyrgilbert.com/blog






~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289619
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Rick Faircloth
Thanks, Bobby!

Rick

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 8:15 AM
To: CF-Talk
Subject: RE: Why wouldn't the first cell alternate colors with this code?

You have get_events.recordcount that should probably be
get_events.currentrow

Try...







#dateformat(event_date, "ddd")#


...:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 7:31 AM
To: CF-Talk
Subject: Why wouldn't the first cell alternate colors with this code?

Hi, all.

 

Assuming all other related issues with this code are correct, why wouldn't

this first cell alternate colors coded like this?  The background color
attribute

seems to be ignored.

 





#dateformat(get_events.event_date, "ddd")#

 




 


#dateformat(get_events.event_date, "ddd")#

 

  








~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289618
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Peterson, Chris
You could even write a quick udf to do this and make it even more
readable:


Function altRow(row) {
if (row mod 2 eq 1) {
return '.high';
}
else {
return '.low';
}
}
 

Then just do:


  #dateformat(get_events.event_date, "ddd")#


Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer

-Original Message-
From: gary gilbert [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 8:18 AM
To: CF-Talk
Subject: Re: Why wouldn't the first cell alternate colors with this
code?

Hi Rick,

If I may make a suggestion, put your style info into two classes and
then
this:


#dateformat(get_events.event_date, "ddd")# 
   #dateformat(get_events.event_date, "ddd")#



Will become:



...High{
padding-top: 1px;
padding-bottom: 2px;
width:35px;
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #eee;
color: black;
font-size: 11px;
font-weight: normal;
text-align: center;
}

...Low {
padding-top: 1px;
padding-bottom: 2px;
width: 35px;
border-left:1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #ccc;
color:black;
font-size: 11px;
font-weight: normal;
text-align:center;
}






  #dateformat(get_events.event_date, "ddd")# 

.

Makes your code a bit more readable and weight a bit less.

Regards,
--
Gary Gilbert
http://www.garyrgilbert.com/blog




~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289615
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Bobby Hartsfield
You have get_events.recordcount that should probably be
get_events.currentrow

Try...







#dateformat(event_date, "ddd")#


..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 7:31 AM
To: CF-Talk
Subject: Why wouldn't the first cell alternate colors with this code?

Hi, all.

 

Assuming all other related issues with this code are correct, why wouldn't

this first cell alternate colors coded like this?  The background color
attribute

seems to be ignored.

 





#dateformat(get_events.event_date, "ddd")#

 




 


#dateformat(get_events.event_date, "ddd")#

 

  






~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289611
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread gary gilbert
Hi Rick,

If I may make a suggestion, put your style info into two classes and then
this:


#dateformat(get_events.event_date, "ddd")#

   #dateformat(get_events.event_date, "ddd")#



Will become:



..High{
padding-top: 1px;
padding-bottom: 2px;
width:35px;
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #eee;
color: black;
font-size: 11px;
font-weight: normal;
text-align: center;
}

..Low {
padding-top: 1px;
padding-bottom: 2px;
width: 35px;
border-left:1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #ccc;
color:black;
font-size: 11px;
font-weight: normal;
text-align:center;
}


...



  #dateformat(get_events.event_date, "ddd")#




Makes your code a bit more readable and weight a bit less.

Regards,
-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289612
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Rick Faircloth
Thanks, Jim... no coffee yet...

Rick

-Original Message-
From: Jim Wright [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 7:43 AM
To: CF-Talk
Subject: Re: Why wouldn't the first cell alternate colors with this code?

On 9/27/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Assuming all other related issues with this code are correct, why wouldn't
> this first cell alternate colors coded like this?  The background color
> attribute
> seems to be ignored.
> 
>

I think you meant to use get_events.currentrow.



~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289607
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Jim Wright
On 9/27/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Assuming all other related issues with this code are correct, why wouldn't
> this first cell alternate colors coded like this?  The background color
> attribute
> seems to be ignored.
> 
>

I think you meant to use get_events.currentrow.

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289605
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread Rick Faircloth
Hi, all.

 

Assuming all other related issues with this code are correct, why wouldn't

this first cell alternate colors coded like this?  The background color
attribute

seems to be ignored.

 





#dateformat(get_events.event_date, "ddd")#

 




 


#dateformat(get_events.event_date, "ddd")#

 

  




~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289604
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4