Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Re: Persistent child window


Message #1 by DANIEL RADU <radudanielro@y...> on Fri, 2 Nov 2001 00:03:28 -0800 (PST)
You could do what you want in 2 ways:
1. Using the showModalDialog() method:
This method receives three parameters: the first is the url you want to display in the page (a htm, asp or image); the second is the
paramtere that you want your child window to receive; the third is a string of features to display the window (status, help
dialogWidth, dialogHeight etc). You can pass the parent window as a parameter. An example: showModalDialog("child.htm",window); Of
course, there is a shoModellessDialog() method receiving the same parameters.
2. Using the open() method (that you have used it):
window.open("child.htm");
In the child.htm page you can access the parent simply using the opener property, or the parent property, something like:
window.opener.location = "new_parent.htm".
Good luck!
  Mark Hamilton <hamilton@w...> wrote: From a Javascript function I launch a window. In that window I wish to 
gather some info, change some info back on the parent, and then return to 
finish the rest of the Javascript function. I can not for the life of me 
get the original Javascript function to wait for the child to be done 
before continuing. Do I need a special parameter in the call to open the 
window to have it wait until I am done? Thanks.


  Return to Index