I use the modal of Twitter's Bootstrap.
You can close the modal, by clicking on a button or something different with the tag
If you read further down the documentation:
Just get the ID of the modal, and replace
myModal with it. Then place it in the AJAX success handler and there you have it.