如何关闭模式弹出窗体并转到父窗体上的下一个控件按钮 [英] How to close modal popup form and go to next control button on parent form
问题描述
嗨所有专业知识,
这里我打开模态弹出窗体,我希望关闭此按钮单击并返回到下一个按钮上的父窗体,
i是一个新的使用这个弹出窗体,所以我不知道该怎么做,或者如何将其重定向到它的父母形式,而没有刷新父窗体;
i这里$ .post方法首先向控制器发送数据保存并尝试返回父表单,
.tpCompony1是我想要的按钮禁用假,然后想要选择它
需要帮助,
我尝试过:
Hi all Expertise ,
Here i am open Modal Popup Form and i want close this on button Click and go-back to parent form on next button ,
i am new to use this popup form and so i don't have any idea what to do here,or how to redirect this to it's parents form without refreshing parent form ;
i do here $.post method to first send data to controller save this and trying to get back on parent form ,
.tpCompony1 is button that i want do disabled false , and then want select it
need help ,
What I have tried:
<script>
$("#saveContinue1").click(function () {
var url = "/MyCompony/Comp1save1";
var shopname = $("#SHOP_NAME").val().trim();
alert("ok");
$.post(url, { SHOP_NAME: shopname }, function (json) {
RefreshParent();
$(this).dialog('distroy').remove();
$(this).parent('.tpCompony1').prop("disabled", false);
$(this).parent('.tpCompony1').focus();
});
function RefreshParent() {
if (popup.opener != null && !popup.opener.closed) {
window.opener.location.reload();
}
}
window.onbeforeunload = RefreshParent;
})
</script>
推荐答案
.post方法首先向控制器发送数据保存并尝试重新开启父表单,
.tpCompony1是我想要禁用虚假的按钮,然后想要选择它
需要帮助,
我尝试过:
.post method to first send data to controller save this and trying to get back on parent form ,
.tpCompony1 is button that i want do disabled false , and then want select it
need help ,
What I have tried:
<script>
(#saveContinue1)。click(function(){
var url =/ MyCompony / Comp1save1;
var shopname =
("#saveContinue1").click(function () { var url = "/MyCompony/Comp1save1"; var shopname =
(#SHOP_NAME)。val()。trim();
alert(ok);
("#SHOP_NAME").val().trim(); alert("ok");
这篇关于如何关闭模式弹出窗体并转到父窗体上的下一个控件按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!