CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Data into css style

Print topic Send  topic

Author Message
alfonso

Posts: 121
Posted: 03/10/2011, 11:29 PM

I need to put data into:

<style>
#style1 {width:30px;height:20px;}
</style>

change to:

<style>
#{valueofstyle} {width:30px;height:20px;}
</style>

but this in in the head section so I don't know if it is possible
View profile  Send private message
datadoit
Posted: 03/11/2011, 5:55 AM

Set a template variable (or tag) in the Page's BeforeShow. There is an
action called Set Tag, so you'll set:

Tag Name: valueofstyle
Expression: "style1"

If you need to dynamically set the tag value based on a condition, you
could:

Tag Name: valueofstyle
Expression: CCGetGroupID() > 1 ? "style1" : "style2"

alfonso

Posts: 121
Posted: 03/12/2011, 2:10 AM

Thanks. I'll try
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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