oeki
Posts: 1
|
| Posted: 11/18/2006, 3:08 PM |
|
Hello Forum,
to change the color of a field I add the following code (according to the manual!)
to the Before Show Row Event:
global $tasks;
if (strlen(CCGetSession("UserLogin")) && $tasks->user_id_assign_to->GetValue() == CCGetSession("UserLogin"))
{
$tasks->task_name->SetValue("<b><font color=\"blue\">".
$tasks->task_name->GetValue()."</font></b>");
}
but if I switch to Live page I can see the HTML-Code and no color-change
If I view the source code of HTML I can see CCS / PHP print the HTML-Entities <b><font color.........
what's wrong?
greetings from germany
oeki
|
 |
 |
wkempees
|
| Posted: 11/18/2006, 3:39 PM |
|
The Properties of task_name DataType is Text, set it to HTML
Also in CCS 3.1, check out documentation or Help files for "Attributes", new
and easier way to do these things.
Walter
"oeki" <oeki@forum.codecharge> schreef in bericht
news:2455f9284a7e90@news.codecharge.com...
> Hello Forum,
>
> to change the color of a field I add the following code (according to the
> manual!)
> to the Before Show Row Event:
>
> global $tasks;
> if (strlen(CCGetSession("UserLogin")) &&
> $tasks->user_id_assign_to->GetValue() == CCGetSession("UserLogin"))
> {
> $tasks->task_name->SetValue("<b><font color=\"blue\">".
> $tasks->task_name->GetValue()."</font></b>");
> }
>
> but if I switch to Live page I can see the HTML-Code and no color-change
> If I view the source code of HTML I can see CCS / PHP print the
> HTML-Entities
> <b><font color.........
>
> what's wrong?
>
> greetings from germany
> oeki
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|