1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<script type="text/javascript">
$(document).ready(function () {
$('a#popup').live('click', function (e) {
var page = $(this).attr("href")
var $dialog = $('<div></div>')
.html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>')
.dialog({
autoOpen: false,
height: 300,
width: 620,
title: "Titre",
});
$dialog.dialog('open');
e.preventDefault();
//Binder l'evenement click du bouton Enregistrer au close
$('#<%= btnRefresh.ClientID %>').live('click', function(){
$dialog.dialog('close');
}
});
});
</script> |
Partager