Hi,
Could someone tell me how can I have a button in the dialog that would close that dialog. I don't know if it matters but this is the script that I use for creating dialog:
- <script type="text/javascript">
$(document).ready(function() {
var $loading = $('<img src="loading.gif" alt="loading" class="loading">');
$('#links img').each(function() {
var $dialog = $('<div></div>')
.append($loading.clone());
var $link = $(this).one('click', function() {
$dialog
.load($link.attr('name') + ' #content')
.dialog({
title: $link.attr('title'),
width: 400,
height: 220,
modal: true
});
$link.click(function() {
$dialog.dialog('open');
return false;
});
return false;
});
});
});
</script>