$(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); }, buttons: { Valider: function() { $('form[name=commande]').submit(); $('#dialogcmd').dialog('option','buttons',''); $('#dialogcmd > #output').html('Commande en cours, Veuillez patienter ...'); }, Annuler: function() { $(this).dialog('close'); } }, close: function() { $('#dialogcmd').remove(); } }; $('
').dialog(dialogOpts); return false; }); $('span.fichier > a').live('click', function(e){ e.preventDefault(); var objet = $(this).parent('span'); objet.html('