Javascript 当对话框模式关闭时,如何在Jquery中刷新页面
我在模态中更新了一些值集,模态在同一页面上打开。 关闭模式时,如何在jquery中刷新页面Javascript 当对话框模式关闭时,如何在Jquery中刷新页面,javascript,jquery,jquery-selectors,Javascript,Jquery,Jquery Selectors,我在模态中更新了一些值集,模态在同一页面上打开。 关闭模式时,如何在jquery中刷新页面 $("#dialog-modal").bind('dialogclose',function() { //How Do i refresh the current Page. )}; 使用: 编辑: 似乎OP希望从以下评论中找到答案: $("#dialog-modal").bind('dialogclose',function(){ $('#someForm').submit(); )}
$("#dialog-modal").bind('dialogclose',function() {
//How Do i refresh the current Page.
)};
使用:
编辑:
似乎OP希望从以下评论中找到答案:
$("#dialog-modal").bind('dialogclose',function(){
$('#someForm').submit();
)}
将吃掉你:当我在上面一行说,它在IE中显示白色屏幕,它说,在没有重新发送信息之前,页面无法刷新。单击“重试”再次发送信息。我如何避免该对话框,只是刷新您让用户通过帖子到达此页面。请看@Here:如果你不介意的话,使用Twitter风格的@username,这样你的回复就会通知你的收件人。我被你的评论弄糊涂了…@Someone:那就不要尝试重新加载页面。使用jQuery选择表单,然后提交,如下所示:$'someForm'。提交;
$("#dialog-modal").bind('dialogclose',function(){
// force the browser to get the page from the server
window.location.reload(true);
)}
$("#dialog-modal").bind('dialogclose',function(){
$('#someForm').submit();
)}