Maris Kalnins
|
| Posted: 05/18/2003, 11:51 PM |
|
Hi!
PHP/CCS2.0.6.11
Can Link and ImageLink objects be hide by setting Visible = False?
I guess they should!
Simple example when it NOT works!
I have a page "test" that contains only one ImageLink object:
<a href="{ImageLink1}"><img src="{ImageLink1_Src}" border="0"></a>
In page's before_show event I have a code:
global $ImageLink1;
$ImageLink1 -> Visible = False;
For my big surprise ImageLink1 is still visible (even with Visible = False)
The same situation is for simple Link too!
What's wrong here? Can somebody explain?
Thanks.
Maris
|
|
|
 |
lneisius
|
| Posted: 05/19/2003, 5:23 AM |
|
Have not tried this particular situation but on a couple others I have found that sometimes the pages before show will not hide components. I would try the links before show event and see if that works.
|
|
|
 |
rrodgers
|
| Posted: 05/19/2003, 7:05 AM |
|
Maris,
I think this only workes for the main components. Grids, Forms etc. There was an earlier thread on this subject. There may be a better explaination on this in that thread.
What I do for links is just set the text that would display to "" an empty string rather than visible = False.
rob
|
|
|
 |
Maris Kalnins
|
| Posted: 05/19/2003, 8:03 AM |
|
Thanks guys for giving clues! :)
The most interesting thing is that construction worked till something happened.. and BOOM.. and I cannot get it work again.. tried almost everything and cannot get an idea why is that so..
What I ended up with is that I use text labels now which output HTML with all needed link tags - probably not the best solution, but at least you can count on it!
Maris
|
|
|
 |
rrodgers
|
| Posted: 05/19/2003, 9:25 AM |
|
Peter Haider responded to you on the news.codecharge.com newsgroups. If you haven't you should take a look at his message. It has a different solution that may be easier.
rob
|
|
|
 |