Hello again
I have a question.
Is there a chance to reload or refresh the page if there is a change in the page content?
I created a web page with Arduino. There is javascript code in the web page content. I access the page from different devices. When I make a change on my phone, the change is not updated on the open page on my PC. I need to refresh the skin. How can I do that solve?
It is currently October 14th, 2024, 12:00 pm
PluginWebView - Make skin using web technology
-
- Posts: 523
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: PluginWebView - Make skin using web technology
I don't know where i going from here, but i promise it won't be boring...
-
- Rainmeter Sage
- Posts: 8451
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: PluginWebView - Make skin using web technology
I suppose the easiest way would be to periodically, at reasonable / acceptable intervals, update your WebView measure in the skin, using the OnUpdateAction of another UpdateDivider featured dummy measure, regardless of whether a change occurred or not.tass_co wrote: ↑June 26th, 2024, 12:28 pm Hello again
I have a question.
Is there a chance to reload or refresh the page if there is a change in the page content?
I created a web page with Arduino. There is javascript code in the web page content. I access the page from different devices. When I make a change on my phone, the change is not updated on the open page on my PC. I need to refresh the skin. How can I do that solve?
Other than that, there are some GitHub tools appearing to do that (google them), there are various event listeners, there are some mutation observers, though I'm not sure they'll suit your case given its particularities:
https://www.w3schools.com/jsref/dom_obj_event.asp
https://en.m.wikipedia.org/wiki/DOM_event
https://stackoverflow.com/questions/5416822/dom-mutation-events-replacement
-
- Posts: 523
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: PluginWebView - Make skin using web technology
Thank youYincognito wrote: ↑June 26th, 2024, 3:51 pm I suppose the easiest way would be to periodically, at reasonable / acceptable intervals, update your WebView measure in the skin, using the OnUpdateAction of another UpdateDivider featured dummy measure, regardless of whether a change occurred or not.
Other than that, there are some GitHub tools appearing to do that (google them), there are various event listeners, there are some mutation observers, though I'm not sure they'll suit your case given its particularities:
https://www.w3schools.com/jsref/dom_obj_event.asp
https://en.m.wikipedia.org/wiki/DOM_event
https://stackoverflow.com/questions/5416822/dom-mutation-events-replacement
Actually, I found different solutions, but this time I got stuck in the CORS obstacle. I need to do some more research
I don't know where i going from here, but i promise it won't be boring...
-
- Rainmeter Sage
- Posts: 8451
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: PluginWebView - Make skin using web technology
Don't remind me of it, lol. It may be necessary and all in some cases, but otherwise workarounding it is a pain in the...
-
- Posts: 523
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: PluginWebView - Make skin using web technology
Yincognito wrote: ↑June 26th, 2024, 4:31 pm Don't remind me of it, lol. It may be necessary and all in some cases, but otherwise workarounding it is a pain in the...
I don't know where i going from here, but i promise it won't be boring...
-
- Posts: 2
- Joined: December 23rd, 2010, 8:39 pm
Re: PluginWebView - Make skin using web technology
I also thought for a long time how to update the page, try the script
config ini
-
- Posts: 523
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: PluginWebView - Make skin using web technology
Thank you for the code
I decided to use !ToggleConfig instead of updating
I don't know where i going from here, but i promise it won't be boring...