JavaScript function:
function loadBlockEditor(block, username) {
var blockInfo = $.ajax({
url: "in/GameElement/BlockEditor.php",
type: "GET",
data: 'block=' + block + '&nick=' + username,
dataType: "html"
});
blockInfo.done(function(response) {
$("#dialog-modal").html(response).dialog();
$('.ui-dialog-title').html("Block Editor")
});
blockInfo.fail(function(jqXHR, textStatus) {
alert( "Error occurred: " + textStatus );
}); }
I have included the necessary jquery CSS and JS files to make this code work correctly. However, I am interested in adding modal dialog animation and size parameters. Can someone provide me with examples on how to achieve this? Thank you.