Page auto-refresh

Is there a way to auto-refresh a page in Confluence?

3 answers

1 accepted

Create a User Macro called, eg, reload60sec

No body

HTML Output code

<script language="javascript">
// Assign an anonymous function to the onload event
window.onload = function(){
// The time out value is set to be 60,000 milli-seconds
setTimeout(' document.location=document.location' ,60000);
}
</script>

Vary the time to suit. Too many reloads will distress the users and the server :)

You then add the macro once to each page you want to reload.

0 vote
Colin Goudie Community Champion Jul 24, 2011

I think the easiest way would be to create a plugin that uses Javascript to do the refresh, or insert the meta refresh tag into the HEAD element.

Why do you need auto-refresh though? Just wondering, if this is for a custom plugin, probably should just do straight AJAX

Thanks for the reply, Colin.

We want the Dashboard to auto-refresh, for example, so that people can see new activity. Also, we have pages with SQL reports in them where the data is changing on a half-hourly basis...

If the auto refresh usage is for any public display (like tv or beamer as information radiator), the simplest way is to load the confluence page in Firefox and use the auto refresh extension of firefox.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

862 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you