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 -> PHP

 update panel visibility doesn't seem to work with javascript

Print topic Send  topic

Author Message
8p2_ziehmann

Posts: 2
Posted: 12/03/2009, 12:22 PM

When I make an update panel invisible in the "BeforeShow" event. ($Component->Visible = false), the javascript code in the "PanelXXX_start" is executed anyway. Since the panel is not there the code "panel.onrefresh = function() {..." leads to a fatal javascript error ("panel is null") and my firefox stops executing any of the following javascript functions. Since the start function is autogenerated by codecharge there seems to be no way to hide an update panel. I think that the generated code should make sure that "panel" is not null before assigning "panel.onrefresh".
Does anybody know a workaround?
View profile  Send private message
ckroon

Posts: 869
Posted: 12/03/2009, 1:18 PM

Assuming you are using the Panels BS event.. try the PAGE BS event.

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
8p2_ziehmann

Posts: 2
Posted: 12/04/2009, 3:34 AM

Thanks for the quick answer, but your solution doesn't seem to work. I moved the "Visible = false" insctructions to the "Before Show" event of the page. But the javascript in the HTML file is generated and executed anyway.
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.