Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Forcing a parent window to reload

Forcing a parent window to reload

WillowFae
12-01-2004, 05:03 PM
I have a parent window and I want it to be reloaded when a form submission is made and processed in its child window.

1. process form
2. reload parent window
3. close child window

I've tried:

window.parent.reload(force);
window.close();

But that doesn't work. I don't want to force the parent window to reload everytime it becomes the focus so I don't think I can put any code in that file.

Is it possible to do what I want and if so, how?

FastCougar
12-01-2004, 05:46 PM
if (window.opener && !window.opener.closed){
window.opener.location.reload();
}
self.close();

WillowFae
12-02-2004, 09:17 AM
Excellent, that works fine - thanks ever so much :)


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

Use script to change external html before it is executed
Turning Scripting Off in IE
How to change base href using variables.
problem submitting to servlet
Menu issues
Help! How to include multiple js files in one line
Fruit Machines

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics