Jquery-ui, redirect to some page after you click on close button -
how redirect after click close button?
$(document).ready(function() { var $dialog = $('<div></div>') .html('this dialog show every time!') .dialog({ autoopen: false, title: 'basic dialog' }); $('#opener').click(function() { $dialog.dialog('open'); // prevent default action, e.g., following link return false; }); });
you define callback close
event in following way well:
$(document).ready(function() { var $dialog = $('<div></div>') .html('this dialog show every time!') .dialog({ autoopen: false, title: 'basic dialog', close: function(ui, event) { $(this).dialog('close'); // redirect on here. } }); });
Comments
Post a Comment