4

The data from the list is displayed on the page using content editor webpart as a scrolling text. The requirement is whenever the list is updated with new items, the data displayed on the page using CEWP should be updated automatically without a entire page refresh. The script to display the scrolling text is in a text file uploaded into the library and linked to the webpart. I tried using SetTimeout and SetInterval, but nothing is working. Please suggest with available options

Thank You

  • 2
    Please post relevant code from that text file. – Amal Hashim Apr 17 '15 at 11:50
5

SharePoint 2010 introduces a new Ajax option has been added to many webparts to enable auto refresh of webpart without refreshing the entire web page. This feature is available out of the box in SharePoint 2010 and no additional development is required.

How to use Auto Refresh Web parts in SharePoint 2010:

In SharePoint 2010, web parts have a new section in their tool panes - Ajax Options:

enter image description here

The key option is the Enable Asynchronous Automatic Refresh. Checking this will enable the Auto Refresh feature on the webpart. The Auto Refreshing Interval is the time interval in which webpart will get refreshed automatically.

Thanks,

  • 2
    Do we have this option available in SharePoint 2013?(SharePoint online) – user38433 Apr 20 '15 at 5:31
  • 2
    yes you have this option in sharepoint 2013 also – Manish Oswal Apr 20 '15 at 11:26
  • 3
    This option is enabled only in data view webpart. – Viraj Gorajia Dec 24 '15 at 10:20
2

Set "Show Manual Refresh Button" setting from previous post and call from Your js script:

jQuery('#MSOZoneCell_WebPartWPQ3').find('#ManualRefresh').click();

Took this solution from another thread.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.