The tiddler being refreshed from the server is an intrinsically
asynchronous operation. If you want to have some action performed when
the tiddler is assigned the refreshed value, then you can use the
notification mechanism to get informed when the tiddler(s) are
updated.

It may be helpful if you could explain a bit more about what you're
trying to achieve?

Best wishes

Jeremy

On Fri, Apr 8, 2011 at 3:32 PM, rakugo <[email protected]> wrote:
> Story.prototype.loadMissingTiddler is probably what you want. The
> RefreshTiddlerCommand plugin in every default space would also be a
> good reference.
>
> On Apr 7, 3:39 pm, teukon <[email protected]> wrote:
>> I'm writing a macro for use on tiddlyspace and I'm trying to find a
>> way to get the text for a tiddler.  I've tried
>> {{{
>> var latestText = tiddler.text;}}}
>>
>> but this seems to try to get the text locally (and hence the text is
>> outdated).  I'd like a way of fetching the latest version of the
>> tiddler from the server on tiddlyspace.com (like the refresh button
>> above a tiddler does).
>>
>> I've looked through the source code for tiddlywiki but it didn't help
>> me.  I've also tried
>> {{{
>> story.refreshTiddler(tiddler.title,1,true);}}}
>>
>> and
>> {{{
>> refreshAll();}}}
>>
>> before using tiddler.text but to no avail.
>>
>> Any ideas?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/tiddlywiki?hl=en.
>
>



-- 
Jeremy Ruston
mailto:[email protected]
http://www.tiddlywiki.com

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

Reply via email to