I use the jQuery UI modal window. It loads immediately with the whole page. Question: Is it possible to make it load only after clicking on a block, and not together with the whole page?
Jquery:
$('#user-panel').dialog({ autoOpen:0 }); $('.user-panel').click(function(){ $('#user-panel').dialog('open'); });
html:
<div class="user-panel"> Див, по клику на который и должен загружаться <div class="ui-dialog"> </div> <div id="user-panel"> Модальное окно </div>