webix & jquery

 href="javascript:void(0)"  onclick="getwin()">
$(document).ready(function(){

$("#callback").webix_popup({
               height:250,
			    width:300,
			    id:"gg",
			    position:"center",
			    head:false,
				body:{
					template:"Some text (center)"
				}
			}).hide();


			function getwin(){
				$("gg").show();
			}

 


});

how get window ? my code not work (

i recive next error
Uncaught ReferenceError: getwin is not defined

thanks for help…

Try defining getwin() function outside the $(document).ready() block.

okey so

function getwin(){
				$("#callback").webix_popup().show();
} 

this be correct solution ?

Both calls are valid, just be sure that getwin function is accessible. In your original code, it was defined inside of ready handler, so it will not be accessible from the links code.


    <script> 
			function getwin(){
				$(document).ready(function(){

$("#callback").webix_popup({
               height:250,
			    width:300,
			    id:"gg",
			    position:"center",
			    window:true,
			    move:true,
			    head:false,
				body:{
					template:"Some text (center)"
				}
			}).show();



});
}


</script>

this is work fine for me , thanks!