S
Snolly
Hi all,
Here is my issue. I have a web page (lets call it page1) with an
iframe in it that then opens a pop-up window (page2). The pop-up
window is used to edit some data that was loaded into page1 so I want
to use onunload to reload page1 to keep the data synchronized.
At first I was using just
window.opener.parent.location = window.opener.parent.location;
and this worked fine.
Now I want to first set the text of page1, i.e.
window.opener.parent.document.write('Contents Updated...reloading
page');
and then reload it.
So I now have the function:
function reloadInfoPage()
{
window.opener.parent.document.write('Contents
Updated...reloading page');
window.opener.parent.location =
window.opener.parent.location;
}
both lines of code work individually. The problem is that once I run
the first line of code, the second line ceases to function. Any ideas?
Thanks,
Mark
Here is my issue. I have a web page (lets call it page1) with an
iframe in it that then opens a pop-up window (page2). The pop-up
window is used to edit some data that was loaded into page1 so I want
to use onunload to reload page1 to keep the data synchronized.
At first I was using just
window.opener.parent.location = window.opener.parent.location;
and this worked fine.
Now I want to first set the text of page1, i.e.
window.opener.parent.document.write('Contents Updated...reloading
page');
and then reload it.
So I now have the function:
function reloadInfoPage()
{
window.opener.parent.document.write('Contents
Updated...reloading page');
window.opener.parent.location =
window.opener.parent.location;
}
both lines of code work individually. The problem is that once I run
the first line of code, the second line ceases to function. Any ideas?
Thanks,
Mark