Dialog box button -> how to close the dialog and change parent page?
Would anyone have examples or suggestions as to how I would go about coding a button within the JQuery Dialog control such that when activated the dialog closes and the page within the browser changes to the desired location?
The modal dialog is used in order to confirm that the user wishes to proceed with specific functionality that may result in loss of data. They must click on the Yes button to proceed. If so, the dialog box should close and the browser should open the page in which the functionality exists. The following is the function that controls the appearance of the modal dialog box with a Yes and Cancel button:
$(function() {
$('#dialog').dialog({
autoOpen: false,
show: 'blind',
resizable: 'false',
modal: 'true',
draggable: 'false',
buttons: {
'Yes': function() {
$(this).dialog('close');
},
Cancel: function() {
$(this).dialog('close');
}
}
});