CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> Perl

 Dynamically change style class?

Print topic Send  topic

Author Message
Posted: 12/02/2004, 10:43 AM

Is there a way to dynamically change the style class? For example:

<td class="ThemeAltDataTD">{Alt_some_data}</td>

In some circumstances, we need to be able to change the class of certain elements. To, for example:

<td class="ThemeMarkAltDataTD">{Alt_somedata}</td>

We would do this in "Custom Code".

We are using CCS and perl.


Posted: 12/22/2004, 1:58 PM

>Is there a way to dynamically change the style class?

Can you refresh page?
I mean it is easy to do if you reload perl script and change varibale value.
For example:

# use if to determine which one you want to use
$specialClass = "ThemeAltDataTD";
$specialClass = "ThemeMarkAltDataTD";

Print "<td class=\"$specialClass\">{Alt_some_data}</td>";
Last Hero
Posted: 12/23/2004, 7:20 AM

Add label ClassLabel:
<td class="{ClassLabel}">{Alt_some_data}</td>

and in before show link or before show row call $Form->ClassLabel->SetValue("ClassName")
Posted: 05/12/2005, 11:03 PM


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

Web Database

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

Home   |    Search   |    Members   |    Register   |    Login

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