programmher
Programmer
I've read and unsuccesfully tried the suggestions already posted in this forum. I have two forms. The parent form opens a popup. The popup inserts a record into my database. I need the parent form to reload (in order to show this newly inserted record) AND place the focus BACK to the child/popup.
Here is my code from the popup/child page. This is called from an onload event in my body tag:
function ReloadParentForm(){
if (window.opener.location.href.indexOf == -1)
{var str=window.opener.location.href + "?varone=<cfoutput>#varone#</cfoutput>&function=<cfoutput>url.function</cfoutput";}
else
{var str=window.opener.location.href + "&chkSelection=FormName";}
window.opener.location.href = str;
opener.location.reload(false);
self.focus;}
From the parent page, I call or open my popup with this:
<a href="form.cfm?varone=#varone#&vartwo=#vartwo#" onclick="NewWindow(this.href,'name','800','600','yes');return false;">Select</a>
Any suggestions?
Here is my code from the popup/child page. This is called from an onload event in my body tag:
function ReloadParentForm(){
if (window.opener.location.href.indexOf == -1)
{var str=window.opener.location.href + "?varone=<cfoutput>#varone#</cfoutput>&function=<cfoutput>url.function</cfoutput";}
else
{var str=window.opener.location.href + "&chkSelection=FormName";}
window.opener.location.href = str;
opener.location.reload(false);
self.focus;}
From the parent page, I call or open my popup with this:
<a href="form.cfm?varone=#varone#&vartwo=#vartwo#" onclick="NewWindow(this.href,'name','800','600','yes');return false;">Select</a>
Any suggestions?