Results 1 to 4 of 4

Thread: Javascript

  1. #1
    Join Date
    May 2005
    Location
    Singapore
    Posts
    12

    Javascript

    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.

  2. #2
    Join Date
    Jul 2002
    Location
    The Big Easy -New Orleans
    Posts
    341
    Redirect using top or parent...

    PHP Code:
    parent.location='homepage.php'

    or

    top.location='homepage.php'
    You can see this in action here

  3. #3
    Join Date
    Jul 2002
    Location
    The Big Easy -New Orleans
    Posts
    341
    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.

  4. #4
    Join Date
    May 2005
    Location
    Singapore
    Posts
    12
    Hi guys, thanks for your help, really appreciate it. I would prefer to use the one with framename specified =) Thnx again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •