$(document).ready(function() { $('.dialogcmd').live('click', function(){ var title = $(this).attr('title'); var href = $(this).attr('href'); var dialogOpts = { bgiframe: true, title: title, width: 550, height: 300, modal: true, open: function(event, ui) { $(this).html('Chargement...'); $(this).load(href); }, close: function() { $('#dialogcmd').remove(); } }; $('
').dialog(dialogOpts); return false; }); });