Reputation: 1254
How to auto refresh the share site? Now when someone post an answer in share discussion the user has to refresh the page in order to view the answer. How to auto refresh the page?
Upvotes: 0
Views: 892
Reputation: 96
I made a polling timer to update specific data instead of reloading the whole page
However this is more work.
Upvotes: 0
Reputation: 1254
I edited toolbar.get.html
in tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\discussions
. I added the following meta tag
<meta http-equiv="Refresh" content="100">
. This is working.
Upvotes: 0
Reputation: 4079
There is no pre-defined auto-refresh component in Share. You'll have to code it yourself.
Option 1: Auto-Poll the server every x seconds via JavaScript, e.g. use YAHOO.lang.later(...)
Option 2: Write your own Alfresco Policy to trigger a Server-Sent Events + consume such event in Share
Option 3: Introduce WebSockets
All Options will require deep knowledge of JavaScript in the Browser, especially YUI & Alfresco's custom Share components & utils. Option 2 & 3 will additionally require deep knowledge of Java & Alfresco's Java Foundation API.
Upvotes: 1