Ruslan Triffonoff
|
Posted: 05/08/2001, 1:19 PM |
|
Hello,
First sorry about my poor english ...
I have a page and a form of "menu" type wich containes some Labels with HTML
option checked, I want to hide/or change caption of a particular menu item,
by changing the lable's html code . I tried placing some code in BeforeShow
event of the form but it doesn't seems to work.
code is something like (php)
$fldMyLabel = '<a href = "http://www.testrl.com> BlaBlaBla</a>' ;
BlaBlaBla is the new caption
As it seems to me using URL type item is not solution of my problem, because
the only thing I can change is the actual URL, but not the caption of the
link.
I am afraid I should use Jscript on the client side
Is there any way to change the label's html content from within CC
Thanks in advance
Rossy
|
|
|
Alexey Alexapolsky
|
Posted: 05/09/2001, 2:23 AM |
|
I suggest you not to use URL field type in this case.
Set all fields subjected to change to "Label" type with "HTML"
checkbox checked in Field properties/Common tab.
Now you can easily stuff any html into those lables in "Before show" event.
--
Regards,
Alexey
CodeCharge Support
Ruslan Triffonoff <rossyit@yahoo.com> wrote in message
news:9d9kc7$6f3$1@mail.tankhill.com...
> Hello,
> First sorry about my poor english ...
> I have a page and a form of "menu" type wich containes some Labels with
HTML
> option checked, I want to hide/or change caption of a particular menu
item,
> by changing the lable's html code . I tried placing some code in
BeforeShow
> event of the form but it doesn't seems to work.
>
> code is something like (php)
> $fldMyLabel = '<a href = "http://www.testrl.com> BlaBlaBla</a>' ;
>
> BlaBlaBla is the new caption
> As it seems to me using URL type item is not solution of my problem,
because
> the only thing I can change is the actual URL, but not the caption of the
> link.
>
>
> I am afraid I should use Jscript on the client side
> Is there any way to change the label's html content from within CC
> Thanks in advance
> Rossy
>
>
>
|
|
|
|