I was trying opener.location.reload() but it doesnt seem to work.
Here is how my script is set up.
In page 1 I have the popup code:
Code:
function go_login () {
loginslip=window.open("","loginslip","width=300,height=275,resizable");
loginslip.focus();
document.fmLogin.submit();
document.fmLogin.reset();
}
You will notice in the code above that no URL is being passed to the function to load a page in the window. What the code does when called is create a popup window and then submits the form. The form has a target of "loginslip" (the name of the new window). It goes to some server side code (done in TCL) and if your login is a success it loads login_success.html in the loginslip window and if its a failure it laods login_fail.html in the window.
The reson I think the opener.location.reload() isn't working is because the window actually erxists and then another page is loaded.
ie: I fill my login details and hit submit, the popup is created and the form submits. My login is a success and login_success.html is loaded. Therefore, the original parent window isn't actually the opener of login_success.html.
Is there some way i can name the parent window with self.name or something and then reload it from the login_success.html page?
Bookmarks