Saturday, March 29, 2014

Pop window instruction

<script>
var $jq = jQuery.noConflict();
$jq(function() {
$jq( "#mydiv" ).dialog({
    title: "View Existing CA Details",
     autoOpen: false,
 width:'auto',
     show: {
       effect: "fade",
       duration: 400
     },
     hide: {
       effect: "fade",
       duration: 400
     },
     modal: false,
   buttons: {
       Ok: function() {

         $jq( this ).dialog( "close" );
       }
     }
   });
$jq( "#tabsholder" ).tabs();
});

function showInPopUpCAList(){
   $jq( "#mydiv" ).dialog( "open" );
   $jq( "#mydiv" ).dialog({
    height: 350,
width: 620
   });
}
</script>
*************************************************************
Under html:
<div id="mydiv"><s:include value="personalInfoDetails.jsp"></s:include></div>
or

<div id="mydiv">Type text</div>


<a href="#" onclick=showInPopUpCAList()/>Action</a>

No comments:

Post a Comment