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 -> Tips & Solutions

 Show Error Messages on Modal window with jquery ui

Print topic Send  topic

Author Message
cleyan


Posts: 128
Posted: 07/04/2011, 10:05 PM

Hi,
I use the following to show the error of a record in a modal window with jquery ui
1) Add into header section of the page
  
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/themes/smoothness/jquery-ui.css" media="all">  
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>  
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>  
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/i18n/jquery-ui-i18n.min.js"></script>  
2) Add the following javascript code into header section of the page or add to a common javascript file
  
<script type="text/javascript" >  
jQuery(document).ready(function(){  
        $( ".errorbar:ui-dialog" ).dialog( "destroy" );  
        $( ".errorbar" ).dialog({  
            width: 500,  
			modal: true,  
			buttons: {  
				Ok: function() {  
					$( this ).dialog( "close" );  
				}  
            }  
	});  
});  
</script>  
3) Change the standard html generated by wizard:
Change {error} to
  
<div class="errorbar">{Error}</div>  
With this option all elements with class="errorbar" will we converted to a modal window If something is wrong and don't work all will be as before so the user don't see a problem, I hope this is usefull for some
Best Regars from Temuco in Chile
Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message
beefcake

Posts: 11
Posted: 09/01/2011, 4:51 PM

Any ideas how to get this to work inside update panel?
View profile  Send private message
cleyan


Posts: 128
Posted: 09/01/2011, 7:29 PM

Sorry,
I don't use the update panel, I like jQuery instead of the codecharge implementatiton


Regards


Carlos

_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
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.