Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
automatic refresh of particular pages
Avatar
kardok #1
Member since Oct 2018 · 5 posts · Location: Bochum, Germany
Group memberships: Members
Show profile · Link to this post
Subject: automatic refresh of particular pages
on our DokuWiki we use one particular page as a start page. This page contains up-to-date information that may change repeatedly within as little as 30 minutes.

How can I evoke this particular page to automatically reload every x minutes or so? I would like to ensure readers will read updated information without having to remind themselves of reloading the page.

"newsticker"-plugin doesn't help in this case, it also depends on a reload of the page.

"Secretly" inserting html code (like <meta http-equiv="refresh" content="60" >) doesn't help, it's ignored and displayed in text.

Or, alternatively, can I create a page that will always read (even meanwhile updated) content from a different page?

Thanks for your help,

Kar.
Avatar
Michaelsy #2
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Please do not post the same question twice. Please delete the content of the message in the other thread with an appropriate note.

To your question:
I would be surprised if there were no browser add-on for this feature. Another possibility would be e.g. https://autohotkey.com/ with which a regular <F5> can send to the browser if (and only if) the corresponding page is open. In addition, with AutoHotkey the page can be brought to the foreground (and much more).

With JavaScript you can certainly program that too.

Perhaps the DokuWiki ~~NOCACHE~~ option is also helpful for the page in question.

HTH - Michael Sy.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited on 2018-10-17, 17:52 by Michaelsy.
Avatar
schplurtz (Moderator) #3
Member since Nov 2009 · 459 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hi,

You can use the trick I described in https://forum.dokuwiki.org/post/62715.

Create an entity named ~~autorefresh~~ . in this example the timeout is set to 5000, so the page will refresh every 5 seconds.
~~autorefresh~~ <script>setTimeout(function () { location.reload(true); }, 5000);</script>

Then add ~~autorerefresh~~ somewhere on every page that needs autorefresh

Schplurtz.

Javascript code by pkaeding in stackoverflow 3992353
Avatar
Michaelsy #4
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
@schplurtz: Chapeau!
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
kardok #5
Member since Oct 2018 · 5 posts · Location: Bochum, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #3
@schplurtz: Thanks for the hint, I'll give it a try. Je te tiens au courant
Avatar
kardok #6
Member since Oct 2018 · 5 posts · Location: Bochum, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #2
@ Michaelsy: Thanks. Sorry, I didn't mean to post twice. Am new to the forum, didn't notice I postet it to the wrong place. Tried to delete it straight away, can't though.
Avatar
Michaelsy #7
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Can happen... Please replace the content with a little note - thanks!
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
kardok #8
Member since Oct 2018 · 5 posts · Location: Bochum, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #3
@schplurtz: Thanks, that did the trick! Merci.
Avatar
schplurtz (Moderator) #9
Member since Nov 2009 · 459 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
De rien. Glad it worked.
PS I edited your other post and added a link to this thread.
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Very cool.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-21, 06:59:16 (UTC +02:00)