Jump to content

disable refresh confirmation


flakturnal

Recommended Posts

Hi.

I'm writing an inventory system in php.

In one of the submit scenarios, I open a child window and submit data to the database where I then close the child window and refresh the parent window displaying the new data.  This part works fine apart from the Internet Explorer refresh confirmation popup which disrupts the flow of the application. 

Is there anyway possible to disable this confirmation page?/

any help would be greatly appreciated.

Regards.

 

my parent contains this in the <head />

 

<script language="JavaScript" type="text/javascript">
function openChildWindow(ahtmlpath)
{newWindow = window.open(ahtmlpath, "mywindow","width=400, height=600")
if (navigator.appName,indexOf("Explorer") != -1) 
	{
	newWindow.window.focus();
	}
	else if (navigator.appVersion.indexOf("5") != -1) 
		{
			newWindow.window.focus();
		} }
</script>

 

with a button at the bottom of form to open child window:

 

<input type="button" value="Add Style" onClick="window.openChildWindow('http://#########/#####/AddStyle.php')">

 

 

 

The child window contains:

 

function reloadParent()
{
opener.location.reload(true);
close(this);
}

 

With this button which closes the childl and reloads the parent:

 

 <input type="button" value="Close Window" onClick="reloadParent();">

 

Any thoughts?

Cheers.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.