CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 How to change listbox back/foreground color

Print topic Send  topic

Author Message
jjcmmgb

Posts: 1
Posted: 02/03/2010, 7:09 AM

Dear all
I'm testing codecharge studio but I'm not able to find out what's the way to change listbox background and foreground color depending on the value inside.
Listbox value is got from a mysql database field and can have 3 different values, high, medium and low.
What I want is that automatically for each record shown in the grid the background and/or foreground color could change depending on what's inside (high in red, medium in yellow, low in green)
What's the php code I should put there?
Should I add the code specifically to the Listbox event or one level above (in the grid)?

Thanks a lot for your help
View profile  Send private message
damian

Posts: 838
Posted: 02/08/2010, 2:05 AM

have a look at javascript.internet.com - you will need to use some js on this one i think...

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.