I am working with two types of webservices.
One that feeds the main dashboard with live data repeatedly. It needs to update (HTTP GET) every X seconds while the page is visible and then stop when it is not.
The other is a user detail page that needs load once when the UserDetail page is displayed (HTTP GET) and then return the modified data to the server (HTTP POST).
I am finding that all the Webservice plugins read every 10 seconds, and I dont know how to stop/start them.
- How to control the time period between updates (GET). I note the time slider in the GenericJSON plugin has been removed. I have tried setting the time programmatically but without much success.
- How to turn off repeating updates, so that the data updates only when requested?
- How to request a one-shot or single update for a webservice plugin
- How to post an update back to the server. I see no code in the WebService plugin.
If I need to, I can implement my own direct HTTP POST code (in the “Update” button script) in the User Detail page. I just thought I would use your routines if they were available.