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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -