Refresh dynamically-loaded webpart

Jul 10, 2012 at 12:49 PM

Marc,

Have you incorporated a way to refresh a webpart using spservices?  I have a webpart that is dynamically-loaded from news articles, and loaded into a carousel.  I'd like to be able to refresh just the webpart, not the entire page, at x interval.  Have you incorporated any such utility?  Thanks in advance for your assistance!

Coordinator
Jul 10, 2012 at 1:05 PM

No, I haven't added this into SPServices, but I've done it with jQuery.

If you are using SharePoint 2010, this capability is built into Data View Web Parts (DVWPs). Have you looked into that?

M.

Jul 10, 2012 at 1:07 PM

Yes, we are on SP 2010.  I have worked with DVWP's in the past, but my current solution uses a CEWP, because of the current lack of availability of SPD2010 in our current environment.

Coordinator
Jul 12, 2012 at 4:04 AM

Here's one example I've used and just posted to my blog in case it's any help:
http://sympmarc.com/2012/07/11/refreshing-a-web-part-without-a-postback-using-jquerys-ajax-function/

M.