Company News

Adding an Auto-Refresh Content Editor Web Part

May 16, 2011

The Challenge

You want to create a dashboard which will automatically refresh itself on a regular basis

The Solution

This is easily accomplishable using a SharePoint Web Part and little bit of scripting, JavaScript in this case, to be precise.

How to Accomplish This Task

Start by going to the page you want to edit, and begin editing the page (you will obviously have to have rights to do this).

Add a Web Part to your page (you should already be in a mode like below).

Choose the “Media and Content” Category, “Content Editor”

To see the full content, share this page by clicking one of the buttons below

11 Responses to “Adding an Auto-Refresh Content Editor Web Part”

  1. CStone says:

    It doesn’t work for all applications, but the Ajax refresh availabe on web-parts is also a great way make sure the information is up to date.

    Doesn’t require any code and only refreshes the specific web-part data instead of doing a full page refresh so it’s easier on the server.

  2. Mary says:

    but not every web part has an Ajax refresh, right? or is this something we can turn on/off

  3. MMMan says:

    No, the ajax refresh on web parts isn’t available universally, plus it will only update the particular web part, not an entire page. The idea for this post was to provide a means to force a page refresh, not a web part refresh.

  4. GGGman says:

    I messed up and put a typo in the script for the refresh rate. Meant to put 15000 but I put 1500. Now the page refreshes so fast that I can’t get to where I can re edit the web part to fix that. Is there another way to edit a web part or do I have to rebuild the page? Thanks for the help.

  5. Hi,

    Thanks for your help,it really helpful for me.

  6. B Baker says:

    How do you remove embedded code from sharepoint 2013?

  7. Jeremy says:

    Great post – worked like a dream!

  8. SeaCooper says:

    Thanks for taking the time to write this post, worked like a charm!

Leave a Reply

Connect With Us