You should probably keep the set widget, it is generally considered 
impolite to spam a server with unneeded requests like that.

This should get around the caching problem and not spam the server with 
requests:

\define img(x)
[img[http://ichart.finance.yahoo.com/t?s=^DJI#?$x$]]
\end

<$set name=CurrentTime value={{$:/temp/update}}>
<$macrocall $name=img x=<<CurrentTime>>/>
<$button>Refresh Tiddler
<$action-setfield $tiddler='$:/temp/update' text=<<now>>/>
</$button>
</$set> 

That should work without spamming the server. The button will only update 
the image if at least a minute has passed since the last update. It doesn't 
happen automatically, but it won't update unless at least a minute has 
passed. This is because the now macro without arguments returns a string 
that is only accurate to the minute. This is probably desirable here.
You can change 
<<now>>

to something like 
<<now ss>>

if you want to be able to update every second instead.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1da6a284-ea37-4b59-8540-f8f196e080cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to