Forums
This topic is locked
Refresh page on focus
29 Jun 2001 02:33:03 Cybercom posted:
Hi,I have a page that links to another page in another window, which shows some details of the product featured in the main window. But in the background that small window also checks the price (through XML) to see if it has been changed since the last check. If it has changed, it updates the database record of that product, which is shown in the main window.
I need a way to have that main window reload when you close the small window. I've tried
<body onFocus="self.location.reload()">
in the main window, but that's not a good solution, because then the page in the main window would load twice when you click on a link on another page to get to that page.
I hope you know what I mean, and that somebody has a solution for this.
I remember seeing a tutorial on "connected" windows somewhere around, but of course, I can't remember where that was...
All help is truely appreciated!