CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Panel not working when in an includable page placed inside another includable page

Print topic Send  topic

Author Message
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
View profile  Send private message
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 :-D

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
View profile  Send private message
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
View profile  Send private message

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 http://support.yessoftware.com.

Web Database

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

Home   |    Search   |    Members   |    Register   |    Login


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