 <p>Example of a possible solution:</p> <pre><code>$('#modalContent').modal({ onShow: function (dialog) { var sm = this; // bind click event to get ajax content $('.link', dialog.container[0]).click(function (e) { e.preventDefault(); $.ajax({ ..., // your settings here success: function (data) { dialog.data.html(data); // put the data in the modal dialog.container.css({height:'auto', width:'auto'}); // reset the dimensions sm.setContainerDimensions(); // resize and center modal // if you want to focus on the content: sm.focus(); // if you want to rebind the events sm.unbindEvents(); sm.bindEvents(); } }); }); } }); </code></pre> <p>I'm going to look into putting a resize function in SimpleModal, which would take care of most of these steps. Until then, this should work for you.</p> <p>-Eric</p>