Click to See Complete Forum and Search --> : Page Refresh!
ShIzO
Aug 4th, 2000, 05:50 PM
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
This will refresh to a page in 10 seconds.
<html>
<head>
<META Http-equiv="refresh" Content="10; Url=http://www.vb-world.net">
</head>
<body>
</body>
</html>
I know what you're trying to do... like on my guestbook (http://www.websamba.com/mralston/default.asp?startpage=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:
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. :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.