Refreshing parent window on child window close
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   andrea_bloome
Posted On:   Thursday, April 26, 2001 07:23 AM

Is there a way to get the window to refresh when the child window closes using the onUnLoad event handler? My problem is that the window refreshes several times for several different reasons, so a simple onUnLoad does not work. I am having troubles getting the correct if statement and values for these different things. The onUnLoad="getDisplay" is in the BODY tag. Here is my code: var srch var add var rmv function getDisplay() { srch = document.fromchoose.bSearch.click add = document.frmchoosebanker.add.click rmv = document.remove.click if (srch == true){ "redirect( <%=transID%>)";} else if (add == true){    More>>

Is there a way to get the window to refresh when the child window closes using the onUnLoad event handler?

My problem is that the window refreshes several times for several different reasons, so a simple onUnLoad does not work. I am having troubles getting the correct if statement and values for these different things.

The onUnLoad="getDisplay" is in the BODY tag.

Here is my code:
var srch
var add
var rmv

function getDisplay() {
srch = document.fromchoose.bSearch.click
add = document.frmchoosebanker.add.click
rmv = document.remove.click

if (srch == true){
"redirect( <%=transID%>)";}
else if (add == true){
"redirect( <%=transID%>)";
}
else if (rmv == true){
"redirect( <%=transID%>)";
}
One of the error messages I am getting is that getDisplay is undefined.

   <<Less

Re: Refreshing parent window on child window close

Posted By:   Thomas_Dietrich  
Posted On:   Wednesday, May 9, 2001 09:40 AM

hello,


Is it possible to just call:

window.opener.location.replace(window.opener.location);

before you call the child-window's close()?


Tom Dietrich


P.S. Please format your question so it's easier to read. :)

About | Sitemap | Contact