Tuesday, November 16, 2010

JQuery implements div as popup

Here is the code

<script>  
    function displayForAddingAddress() {

        $("#addAddress").load("${root}/action/address.action")

              .dialog({height: 350,                      width: 600,

                     modal: true});     }
</script>
<div id="addAddress" title="Add Address"></div>


The property modal:true will block the background.



load method is loading the content of that url into the target div.

No comments:

Post a Comment