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?
|
 |
 |
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. |
 |
 |
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.
|
 |
 |
|