-
Windows
Hi i have an asp page where the user will click on a link and another window will open. They will make a status to field, hit save and then the new window should close and it should refresh the calling page so that the page will be repopulated from the database. The question I have is how do i get the new window to refresh the calling window. I am using the following code to open up a new window.
function open_window(url) {
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable= 0,width=520,height=350');
}
Thanks
Scott
-
use this code in your Child window right before you close it:
Code:
window.parent.location.reload();
-
It worked, thanks for the help. I also sent an alert back notifying the user that the change was accepted by the database.
-