+ Start a Discussion
Hugues RaguetHugues Raguet 

chatter auto refresh

Hi, I want to implement auto resfresh in the chatter feeds.
I found a solution in the StackExchange:

"This isn't supported by Salesforce and they could change their code to break this, but I've been successful in refreshing the Chatter feed with Javascript.
if (window.chatter) { var feed = chatter.getFeed(); var feedConfig = feed.getConfig(); feed.refresh({ feedType : feedConfig.feedType, isFullRefresh : true, params : feedConfig }); } "

But I don't know where to include this javascript.
Could it be on the side bar ?