-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] iframe widget doesn't reload #1571
Comments
any news ? page.htm
<script>document.write(Date().toString());</script>
<iframe src="frame.htm" title="frame title"></iframe> iframe.htm <script>document.write(Date().toString());</script>with dashy will it works? |
Have submitted in 07dbccc, and I'll try and get a PR open for this sometime this weekend. SolutionI got it working, with something like this: const iframe = document.getElementById(this.frameId);
iframe.contentWindow.location.href = this.frameUrl;
iframe.contentWindow.location.reload(true); With the data: () => ({
updateCount: 0,
}),
computed: {
/* Generate a URL param, to be updated in order to re-fetch image */
updatePathParam() {
return this.updateCount ? `#dashy-update-${this.updateCount}` : '';
},
/* Gets users specified URL to load into the iframe */
frameUrl() {
return `${this.options.url}${this.updatePathParam}`;
},
} |
Hi, I bypass the problem by adding this code in the iframed html page |
Because the updateInterval in the widget section , as described in your docs doesn't work |
Environment
Self-Hosted (Docker)
System
No response
Version
latest
Describe the problem
hi , i have setup an ifram widget like this:
as you can see i have setup the parameter to autoreload the html page each 1800 seconds but the page is not updated...the only way to see the change is to close the dashy board or right click on that iframe and hit reload this sub page...
i'm using the latest firefox.
please let me know
Additional info
No response
Please tick the boxes
The text was updated successfully, but these errors were encountered: