Click here to Skip to main content
14,208,773 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
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>
Posted
Updated 29-Mar-19 5:30am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190612.1 | Last Updated 29 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100