Refresh <div> every hour (containing a transcluded tiddler)

22 views
Skip to first unread message

Mike

unread,
Apr 3, 2009, 10:16:21 PM4/3/09
to TiddlyWiki
I have a <div> (PageTemplate) containing a <<tiddler contentHeader>>
I use the div to show (3) days of upcoming reminders - any way to
refresh the div / tiddler hourly?

Thanks,

Mike

Mike

unread,
Apr 5, 2009, 11:03:27 PM4/5/09
to TiddlyWiki
Some more detailed information:
PageTemplate <div>:
<div class='hD' id='hD' refresh='content' tiddler='contentHeader'></
div>

and my contentHeader:
<<tiddler DateTime>>
__''Reminders''__
<<showReminders leadtime:2>><script>setTimeout("story.refreshTiddler
('contentHeader',null,true)",3600000);
</script>
<script>
document.getElementById('hD').innerHTML;
function Refresh() {setInterval(stocks(), 3600000);}
</script>

The first script I found in the archives (ELS) and it works- but I
think the tidler has to be open...
The second script I found trolling through the internet (not working)

Any Suggestions?
I also looked at http://www.tiddlytools.com/#AutoRefresh
but not sure if it could refresh the <div> section. ID maybe?

I appreciate any Ideas,

Mike

Eric Shulman

unread,
Apr 6, 2009, 1:51:47 PM4/6/09
to TiddlyWiki
Try this:

[[PageTemplate]]:
<div class='hD' id='hD' refresh='content' tiddler='contentHeader'></
div>

[[contentHeader]]:
<<tiddler DateTime>>
__''Reminders''__
<<showReminders leadtime:2>><script>
setTimeout("config.refreshers.content(document.getElementById
('hD'))",3600000);
</script>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Mike

unread,
Apr 6, 2009, 2:03:51 PM4/6/09
to TiddlyWiki
Thank You

Please Disregard AutoRefresh Script post (Chasing the same idea)
waiting an hour to verify - but I am sure it works

I appreciate your continued help,

Mike

Eric Shulman

unread,
Apr 6, 2009, 4:07:55 PM4/6/09
to TiddlyWiki
> Please Disregard AutoRefresh Script post (Chasing the same idea)
> waiting an hour to verify - but I am sure it works

To test faster, just change the 3600000 to 60000 and it will refresh
once-per-minute instead of once-per-hour.

enjoy,
-e
Reply all
Reply to author
Forward
0 new messages