I have a jQuery Dialog box and Am loading the content using Ajax.
The Dialog is initially in the center of the page. The problem , here is , Since its a dynamic con
I use that function:
function centerDialog(id){ var d = $('#'+id).closest('.ui-dialog'), w = $(window); d.css({ 'top':(w.height()-d.outerHeight())/2, 'left':(w.width()-d.outerWidth())/2 }); }