CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Javascript error IE8 hide update panel

Print topic Send  topic

Author Message
alfonso

Posts: 121
Posted: 04/09/2010, 11:38 AM

Hi!

Well, i have another question about update panel, some times i need to hide update panel, for example when i donīt have any values in a table and i donīt have any value to show then i hide an update panel.

the problem is in IE, when i charge a page and update panel visibility goes to false then shows me a javascript alert that says me: funciont refresh null, of course i undestand that doesnīt "found" my panel cause is invisible.

in firefox doesnīt appear the message, what can i do?? thanks
View profile  Send private message
alfonso

Posts: 121
Posted: 04/09/2010, 11:56 AM

Well, i answer myself twice this day hehe.

The problem is in javascript code when is going to start a panel, the original code is this:

function panel_noticias_start(sender) {      
 var panel = $("panel_noticias");       
panel.onrefresh = function()  
 {  };       
AjaxPanel.init(panel);       
AjaxPanel._bind(panel);       
panel_noticias_bind(sender);   
}

And i do this fix:
  
function panel_noticias_start(sender)   
{       
 var panel = $("panel_noticias");  
	if (panel == null)  
	{}  
	else{        
panel.onrefresh = function()   
 {  };       
 AjaxPanel.init(panel);        
AjaxPanel._bind(panel);       
 panel_noticias_bind(sender);  
}  
 

Only thing i do is to put in and if clause that check if the panel exists (is visible) and then if itīs not code doesnīt run and IE doesnīt show the alert.
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.

MS Access to Web

Convert MS Access to Web.
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.