13
我試過不同的方法來做到這一點,但我不能得到它的工作。這是代碼:關閉重定向jQuery UI對話框
$.ui.dialog.defaults.bgiframe = true;
$(function() {
$("#category_edit_dialog").dialog({
width: 960,
hide: 'slide',
position: 'top',
show: 'slide',
close: function(event, ui) { redirect here? how? }
});
});
});
謝謝dekomote幫助我。在他的建議我解決了這個問題:這裏是完整的工作代碼:
$.ui.dialog.defaults.bgiframe = true;
$(function() {
$("#category_edit_dialog").dialog({
width: 960,
hide: 'slide',
position: 'top',
show: 'slide',
close: function(event, ui) { location.href = 'url here' }
});
});
你嘗試位置的頁面.href ='你想重定向的地方' – dekomote 2010-09-19 11:16:31