Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends ,

here i create a popup Form , but i want to desebel parent form of lode of child popup Form
i don't have any idea how to desebel this and when close a child form it became a enable ,
hire is a code of create popup function

please help me ,

What I have tried:

<script>
		var popup;
		
		var monitor = setInterval(function () {

			if (popup.closed) {
				document.location.reaload()
			}

		}, 1000);
		function PopupForm(Url) {
			var formDiv = $('<div/>');
			
			$.get(Url, {})
				.done(function (response) {
					formDiv.html(response);
					
					popup = formDiv.dialog({
						autoOpen: true,
						scrollbars: true,
						resizable: false,
						title: ' INVOICE REORD',
						height: 520,
						width: 1117,
						
						close: function () {
						
							RefreshParent();
							popup.dialog('distroy').remove();
							return false
						}
						
					});
					popup.focus();
					
				});

		};
		
		
		
		
	</script>
Posted
Updated 26-Mar-19 6:11am

1 solution

Seems like you were using jQuery Dialog and you've missed one important thing. First, you need to set the attribute modal:true. Second, you've missed the semi-colon (;) after your return false line. You could try something like this instead:


JavaScript
popup = formDiv.dialog({
	autoOpen: true,
	modal: true,
	scrollbars: true,
	resizable: false,
	title: ' INVOICE REORD',
	height: 520,
	width: 1117,
						
	close: function () {				
		RefreshParent();
		popup.dialog('distroy').remove();
		return false;
	}
});
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900