Results 1 to 3 of 3

Thread: Page Refresh!

  1. #1

    Thread Starter
    Addicted Member ShIzO's Avatar
    Join Date
    Apr 1999
    Location
    Bartlett, IL
    Posts
    189

    Unhappy

    Hello friends,

    Here is what i want to do:

    I have main page from which you can click a link, this link brings up the second browser window, like a child window
    (like the advertisement popups on geocities , ok?)

    and then what i want to do is after user do something on that child window (either post or close it) i want the main window to refresh automatically.

    Any idea how to do it? any language
    www.HardFind.com -buy/sell/trade your used hardware.

  2. #2
    Guest
    This will refresh to a page in 10 seconds.

    Code:
    <html>
    <head>
    <META Http-equiv="refresh" Content="10; Url=http://www.vb-world.net">
    </head>
    <body>
    </body>
    </html>

  3. #3
    Guest
    I know what you're trying to do... like on my guestbook, when the user wants to post they click a link which launches a popup window which takes their details and updates the database. Then it tells the user it was successful and would (if i could do it) tell the main window to refresh itself to show the new entry.

    I think you'd need to use some javascript that knew the name of the parent window. The javascript do something like:

    Code:
    parent.location=('http://www...');
    I fiddled for ages at this and eventually gave up. I think my problem was that the main guestbook page wasn't just in a different window, it was in a frame in that window too.

    Erm...you may be able to decalre a variable that is global to both windows. After the link is checked the main window goes into a loop checking if that variable has been set to true. When the child window is finished (yup...you know what's coming)...it sets that window to true. At this point the parent window would spot the change, exit its loop and refresh itself.

    Not bein a javascript type person, I dunno how to do this, but let me know if you figure it out.

Posting Permissions

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



Click Here to Expand Forum to Full Width