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