BTemplates.com

About This Blog

Powered by Blogger.

Search This Blog

Friday, July 19, 2013

How to set auto refresh in SharePoint site step by step?


How to set auto refresh in SharePoint site step by step?

Step 1. Click on Site Action and then “Edit Page”


Step 2. Click on “Insert” and then “Web part”


Step 3. Click on “Media and Content”,then “Content Editor” and then  “Add”



Step 4.

Step 4. Click on “Edit Web part”


Step 5. Click on “Clikc here to add new content”


Step 6. In “Editing tool” section click on “Edit HTML Source”


Step 7. Then copy this Java script. (it will set auto refresh for two minutes or 120 secound).

<script type="text/javascript" language="javascript">
var reloadTimer = null;
var sURL = unescape(window.location.pathname);

function setReloadTime(secs)
{ if (arguments.length == 1)
   { if (reloadTimer) clearTimeout(reloadTimer);
       reloadTimer = setTimeout("setReloadTime()", Math.ceil(parseFloat(secs)*1000));
   }
   else
   { reloadTimer = null;
     location.reload(true);
     window.location.replace( sURL );
   }
}

setReloadTime(120);
</script>


Step 8. Then click "OK".

The SharePoint page has been set to refresh for 2 minutes.
Have a good day !! :) Enjoy

0 comments:

Post a Comment