Ever want a list to refresh on its own so that you know you have the latest list of info? Well here is a solution that can be used.
Christophe has provided us with many great solutions. One of those solutions has been code that allows us to
view a list from any site, which SharePoint does not do out of the box.
I have been using this solution and have found great uses. I then began to have a need to be able to view the latest listing since the list was being updated on a regular basis. I had been refreshing the page, but that updated everything a took a lot of time.
I decided that there must be a better way. So I did some research and found a way to make the list refresh on a regular basis.
This post will outline my solution for making a list view using
Christophe's original code and adding a timer to reload. The nice part is that this does not reload the whole page, only the list.
I will be only applying this to the JQuery version of Christophe's code.
Here is Christophe's original code:
Here is Christophe's code with the refresh timer added in red:
The timer can be adjusted to update at any interval. To make an adjustment you will need to update the number in blue.
To set the timer here are some examples:
20 seconds ----> 20000
60 seconds ----> 60000
6 minutes ----> 600000
Enjoy,
Peter