Hergest
09-02-2003, 12:31 PM
I'm trying to develop a simple web page that allows any other web page to be refreshed periodically (useful for refreshing news headlines, sports scores, etc).
The user will enter any http URL and refresh rate in a form, and when submitted, the URL will be opened in either another frame or window. A timer will reload the url periodically.
refresh page (http://www.hergest.demon.co.uk/refresh.htm)
This works fine, but I thought it would be nice for the controlling frame/window to simply refresh whatever is in the display frame/window (ie. so the user can navigate around and it will refresh the current page, not back to the starting page).
I thought this would be possible as the frame/window is opened from my starting page. However, I get an access denied error when trying to access the location.href or location.reload() for the other frame/window (I've tried both).
Is there anything I can do to get this idea to work?
The user will enter any http URL and refresh rate in a form, and when submitted, the URL will be opened in either another frame or window. A timer will reload the url periodically.
refresh page (http://www.hergest.demon.co.uk/refresh.htm)
This works fine, but I thought it would be nice for the controlling frame/window to simply refresh whatever is in the display frame/window (ie. so the user can navigate around and it will refresh the current page, not back to the starting page).
I thought this would be possible as the frame/window is opened from my starting page. However, I get an access denied error when trying to access the location.href or location.reload() for the other frame/window (I've tried both).
Is there anything I can do to get this idea to work?