When you open a document in SharePoint and then close it the SharePoint page in IE auto refreshes – this is quite handy if you’re editing metadata in your document and want the changes refreshed when you save the document back but…
I had a requirement to disable this functionality for one particular site – here’s how to prevent SharePoint refreshing the page when you close a document.
Create a file called disablesprefresh.js and save it in the LAYOUTS\1033 directory – for me this is located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033
If you want to disable the page refresh for ALL pages add this line to disablesprefresh.js:
I only wanted to disable the refresh for one page so i have this in my disablesprefresh.js:
Next, edit your master page and add these two lines:
<SharePoint:ScriptLink language=”javascript” name=”core.js” Defer=”true” runat=”server”/>
<SharePoint:ScriptLink language=”javascript” name=”disablesprefresh.js” Defer=”true” runat=”server”/>
I placed them just below this line:
Check-in your master page\approve and you’re all done – awesome!
Thanks. Awesome post. Saved my life!
hi!,I like your writing very a lot! proportion we communicate more approximately your article on AOL? I require an expert in this space to resolve my problem. May be that is you! Having a look forward to look you.
Pingback: Buy Facebook Fans
Pingback: invest liberty reserve
Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.
Recipes for diabetics
I always like to have a read about such things, my blog is related if you want to have a look round it please feel free. I have added yours to my bookmarks.
My website is about Stock quote