Arghh - wrong link above.. .
http://www.strm.us/tw/testwiki.htm#chkRandomTheme:true

Mike

On Jun 21, 11:44 pm, Mike <eris...@gmail.com> wrote:
> Neither solution worked?
>
> The simple script worked in my testbed, although it seems ELS's
> solution would be more elegant
> I also made a mistake above 60000 = 2 min 600000 = 10 min +/-
>
> http://www.strm.us/tw/testwiki.htm
>
> I Modified my CustomViewTemplate to transclude TimedRestart - and I
> changed it from a restart to a reload - I think this is what you are
> looking for, not sure why it it not working as you desire. . .
> (Restart closes tiddlers and start over without reloading the entire
> document vs reload i.e. F5)
>
> Also, as another idea, you could put the script at the last slide, and
> have it reload the TW xx ms after the last slide loads (might be
> easier to get the timing down)
>
> HTH, (still no dropbox access, sorry if this is not relevant)
>
> Mike
>
> On Jun 20, 2:15 pm, Måns <humam...@gmail.com> wrote:
>
> > Is it possible to use the <META tag in the customized pagetemplate to
> > invoke the pagerefresh routine??
> > <META
> >      HTTP-EQUIV="Refresh"
> >      CONTENT="5; URL=http://MySlideShow#txtTheme";>
>
> > regards Måns Mårtensson
>
> > On 20 Jun., 20:55, Måns <humam...@gmail.com> wrote:
>
> > > I found a specialized html/javascript code for refreshing browser/page
> > > here:http://www.myrefresher.com/samples/javascript_html_refresh_code.html.zip
> > > However I don't know if it's any better than the codebit I've got
> > > already - or how to implement it. It seems that you'll have to have it
> > > written directly into the htmlbody:
> > > Scriptsnippet:
> > > <script language="JavaScript">
> > >             <!--
>
> > >             var surl = unescape(window.location.pathname);
>
> > >             function doLoad()
> > >             {
> > >                 // the timeout value should be the same as in the
> > > "refresh" meta-tag (6 seconds)
> > >                 setTimeout( "refresh()", 6000 );
> > >             }
>
> > >             function refresh()
> > >             {
> > >                 //  This version of the refresh function will cause a
> > > new
> > >                 //  entry in the visitor's history.  It is provided
> > > for
> > >                 //  those browsers that only support JavaScript 1.0.
> > >                 //
> > >                 window.location.href = surl;
> > >             }
> > >             //-->
> > >             </script>
>
> > >             <script language="JavaScript1.1">
> > >             <!--
> > >             function refresh()
> > >             {
> > >                 //  This version does NOT cause an entry in the
> > > browser's
> > >                 //  page view history.  Most browsers will always
> > > retrieve
> > >                 //  the document from the web-server whether it is
> > > already
> > >                 //  in the browsers page-cache or not.
> > >                 //
> > >                 window.location.replace( surl );
> > >             }
> > >             //-->
> > >             </script>
>
> > >             <script language="JavaScript1.2">
> > >             <!--
> > >             function refresh()
> > >             {
> > >                 //  This version of the refresh function will be
> > > invoked
> > >                 //  for browsers that support JavaScript version 1.2
> > >                 //
>
> > >                 //  The argument to the location.reload function
> > > determines
> > >                 //  if the browser should retrieve the document from
> > > the
> > >                 //  web-server.  In our example all we need to do is
> > > cause
> > >                 //  the JavaScript block in the document body to be
> > >                 //  re-evaluated.  If we needed to pull the document
> > > from
> > >                 //  the web-server again (such as where the document
> > > contents
> > >                 //  change dynamically) we would pass the argument as
> > > 'true'.
> > >                 //
> > >                 window.location.reload( false );
> > >             }
> > >             //-->
> > >         </script>
> > >     </head>
> > >     <!--
> > >         Use the "onload" event to start the refresh process.
> > >     -->
> > >     <body onload="doLoad()">
> > >         <script language="JavaScript">
> > >         <!--
> > >             // we put this here so we can see something change
> > >             document.write('<b>' + (new Date).toLocaleString() + '</
> > > b>');
> > >         //-->
> > >         </script>
> > > regards Måns Mårtensson
>
> > > On 20 Jun., 20:26, Måns <humam...@gmail.com> wrote:
>
> > > > Maybe this the way to go, for the embedded 
> > > > systems:http://windowssecrets.com/support-alert/2008/06/19/14-Free-auto-refre...
> > > > - however I haven't found a plugin for Google Chrome yet..
>
> > > > regards Måns Mårtensson
>
> > > > On 20 Jun., 19:55, Måns <humam...@gmail.com> wrote:
>
> > > > > Hi again
> > > > > Now I've run through the cycle a few times - and it is only refreshed
> > > > > 1 time - and not again? I will test it with FF when i get a chance -
> > > > > for now I have to use Google Chrome...
> > > > > [[InfoTilstand]]
> > > > > Here's my code:
> > > > > |Init|InfoTilstand##init|
> > > > > |Reset|InfoTilstand##reset|
> > > > > !!!!!init
> > > > > //{{{
> > > > > window.refreshTimerID=setTimeout("story.closeAllTiddlers();restart();",
> > > > > 60000);
> > > > > //}}}
> > > > > !!!!!reset
> > > > > //{{{
> > > > > clearTimeout(window.refreshTimerID);
> > > > > //}}}
>
> > > > > On 20 Jun., 19:34, Måns <humam...@gmail.com> wrote:
>
> > > > > > Hi Eric
>
> > > > > > > |Init|InfoThemeInit|
> > > > > > > |Reset|InfoThemeReset|
>
> > > > > > > Then, in [[InfoThemeInit]], write:
>
> > > > > > > window.refreshTimerID=setTimeout("story.closeAllTiddlers();restart();",
> > > > > > > 60000);
>
> > > > > > > and in [[InfoThemeReset]], write:
> > > > > > >    clearTimeout(window.refreshTimerID);
>
> > > > > > Thanks for helping me in integrating the pagerefresh script into the
> > > > > > Theme..
> > > > > > I had a peek at TotallyTiddlers and figured out how to get the 
> > > > > > slices
> > > > > > and sections "communicate".
> > > > > > It works like a 
> > > > > > charm:https://dl.dropbox.com/u/3105342/TW/ProtoTyper/HUSLIDE/HUSlide.html#I...
> > > > > > In 
> > > > > > action:http://dl.dropbox.com/u/3105342/TW/ProtoTyper/HUSLIDE/HUSlide.html#tx...
> > > > > > HovedSlide
>
> > > > > > cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to