elwinbox
Technical User
- Oct 8, 2007
- 5
I use the javascript triggered popups in my PHP script for passing messages/instructions to the script user.
Unfortunately, some browsers (e.g.Opera) seem not to refresh the popup content when the onload event opens a popup window and the data displayed is not up-to-date, apparently it is re-read from he browser's cache memory. I don't want to use the META Refresh instruction for the purpose, cause it's an overkill for my needs and in the first place it doesn't refresh in the first moment the window shows up, but only AFTER the specified time interval, so it is useless to me; the other 'href' instruction would be great, if one could launch it without bothering the user to click on it.. - but how could I force a one-time refresh only - i.e. immediately after the onload event? Unfortunately, using the onload trigger with the "history.go(0)" instruction starts an endless loop - a vicious circle of reloading the content, which brings up-to-date content to the window, but abuses the server.
Is there really no way to automatically force a one-time refreshing of the content of the popup window without bothering the user to click on the hyperlink?
(this looks like: <A HREF="javascript:history.go(0)">Click to refresh the page</A>
(by Joe Burns)
Unfortunately, some browsers (e.g.Opera) seem not to refresh the popup content when the onload event opens a popup window and the data displayed is not up-to-date, apparently it is re-read from he browser's cache memory. I don't want to use the META Refresh instruction for the purpose, cause it's an overkill for my needs and in the first place it doesn't refresh in the first moment the window shows up, but only AFTER the specified time interval, so it is useless to me; the other 'href' instruction would be great, if one could launch it without bothering the user to click on it.. - but how could I force a one-time refresh only - i.e. immediately after the onload event? Unfortunately, using the onload trigger with the "history.go(0)" instruction starts an endless loop - a vicious circle of reloading the content, which brings up-to-date content to the window, but abuses the server.
Is there really no way to automatically force a one-time refreshing of the content of the popup window without bothering the user to click on the hyperlink?
(this looks like: <A HREF="javascript:history.go(0)">Click to refresh the page</A>
(by Joe Burns)