jeden
Posts: 20
|
| Posted: 05/16/2006, 7:38 AM |
|
Hello,
I'm working on a component which:
- displays the controls for username/password when the user is not logged
- displays a welcom message and a logout button when the user is logged
The two modes are switched using 2 panels
Since I plan to use this component in all pages of the website I'm working on, I created it as an includable page.
If I include this page in a normal page, I'm able to hide/display each panel, by setting the visible property in the beforeshow event.
Next, in order to avoid adding this component to each page, I thought to include it in the header page - but in this case, the visible property doesn't work, although the event is executed (I added some echos to verify this),
Am I doing something wrong, or panels don't work in an includable page which is used inside another includable page?
Thanks
Antonio
_________________
Antonio Bello
Elapsus - Software & Solutions
http://www.elapsus.com
Developer's Corner
http://www.developer-corner.com |
 |
 |
jeden
Posts: 20
|
| Posted: 05/17/2006, 8:05 AM |
|
Not good if nobody has an answer.... Maybe the problem has no direct solution.
Anyway, the trick I found is to move the logic that chooses which panel to display in the header page..... not really good as design pattern, but at least it works 
The reason I think this doesn't work is that events in the included page are processed when it's too late, and setting the Visible member has no effect.
A question to YesSoftware: could this behavior be considered as a bug?
Antonio
_________________
Antonio Bello
Elapsus - Software & Solutions
http://www.elapsus.com
Developer's Corner
http://www.developer-corner.com |
 |
 |
peterr
Posts: 5971
|
| Posted: 05/17/2006, 11:59 AM |
|
Possibly there is a solution to your question. You can contact YesSoftware support at http://support.yessoftware.com/support_new.asp
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|