Hey everybody,
I have a question. Ok, when a user logs into my web site for the first time they have to activate their account before they can navigate through the site. Now to activate the account they have to click on a link that opens up a new window. Here they enter the activation code and press submit to send the MySQL query to delete their number out of the "need to activate account" table. Then they close the window and have to log out and log back in before they can navigate. What I want to do is when they press submit the parent web page will refresh so they don't have to manually refresh, or log and log back in. Thanks.
Javascript refresh parrent window
Moderator: General Moderators
-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm
put this in the child window
you will need to put this AFTER the user has removed him self from the table.
page.php = page where the parent window should go.
you will need to put this AFTER the user has removed him self from the table.
Code: Select all
<body onload="window.opener.location.href='page.php')">-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm
-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm
-
php_wiz_kid
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 24, 2003 7:33 pm
Well, if you're just refershing, maybe
I think that's it, at least.
Code: Select all
<body onLoad="window.opener.location.reload()">