Auto refresh widget - turn auto refresh on without first time refresh
Hi All,
I have a mashup where I show the current status of the device.
In this mashup I also let the user change the status of it.
Because I want to show the user the most current status of the device I refresh the screen every 10 seconds.
The problem - if the user choose to change one of the properties and didnt save yet, the refresh will reset its choise.
The solution, every time the user click on a button it will reset the auto refresh so it start counting from the begining and only if 10 seconds passed since the last time the user click on a button it will refresh the mashup.
Is there any way to do it?
When I toggle the refresh button (Change from ON to OFF) it will immidiately trigger the refrsh and not wait to finish counting.

