Comments (4)
any news ?
i do an html test page and an iframe inside of it and in a normal html page adding the tag: in the iframe it reload the iframe page.
page.htm
<iframe src="frame.htm" title="frame title"></iframe>
iframe.htm
<script>document.write(Date().toString());</script>with dashy will it works?
from dashy.
Have submitted in 07dbccc, and I'll try and get a PR open for this sometime this weekend.
Solution
I 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 frameUrl
having an extra val appended to it on each reload
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}`;
},
}
from dashy.
Hi, I bypass the problem by adding this code in the iframed html page
from dashy.
Because the updateInterval in the widget section , as described in your docs doesn't work
from dashy.
Related Issues (20)
- [BUG] Startup on 3.1.0 consumes too much cpu HOT 33
- [BUG] Unauthorized user can access /conf.yml HOT 1
- [BUG] Updated the container and my customizations are missing HOT 8
- [BUG] Favicon not loading on page load HOT 5
- [Feature_Request] add new type of Window
- [BUG] widget gets placed in the wrong spot in the dashboard HOT 3
- [BUG] Glances Issue HOT 9
- Keycloak and user type HOT 1
- own config not loaded after upgrade to 3.1 <title> HOT 4
- [QUESTION] Issue running docker command HOT 3
- [FEATURE_REQUEST] <Widgets for Zabbix>
- [BUG] Minimal view as starting view not using correct theme HOT 6
- [BUG] yarn.lock update for heroku (on Netlify)
- [QUESTION] Cookies or Session states cleared/reset when link clicked? HOT 11
- [BUG] Glances Network Traffic Error HOT 2
- error 404 all of a sudden HOT 35
- Custom color settings revert to theme default when you click Cancel HOT 1
- font-awesome icons only work if there's no dash in the icon name HOT 3
- [BUG] Keycloak authentication breaks Dashy HOT 1
- SEVERE bug in Dashy - looping reinstall after adding basic auth to conf.yml HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashy.