Web Hosting Talk







View Full Version : Javascript


JieWei
05-07-2005, 04:45 AM
I wonder if anyone can help me:

I have a webpage http://aero-modelling.net/web/index.php. If anyone is interested to help you can register an account.
After registering, you can try to log out. Although the logoff succeeds, but the left navigation bar still show the logged in information.

In basic, the logoff only takes place at the center iframe. However, I hope to use with the help of Javascript to reload the WHOLE page instead of just the iframe itself. Currently, I'm using reload.window.location('homepage.php') in the PHP script, if anyone has a suggestion to reload the WHOLE page instead of only the iframe, pls help and voice it.


help appreciated.

Lagniappe-labgeek
05-07-2005, 09:08 AM
Redirect using top or parent...


parent.location='homepage.php';

or

top.location='homepage.php';


You can see this in action here (http://www.lapazsoftware.com/testframe/)

Lagniappe-labgeek
05-07-2005, 10:38 AM
You can also use top.(framename).location="page.html"; to just change the other frame. See the second link in the quick example page I made for you above.

JieWei
05-08-2005, 03:11 AM
Hi guys, thanks for your help, really appreciate it. I would prefer to use the one with framename specified :D =) Thnx again