Hi Eric Sorry about my inaccurate use of the term "refresh".. I get this errormessage - when I have placed it in the viewtemplate and tries to run it from a tiddler: TypeError: store.findContainingTiddler is not a function This is what I wrote in the customViewTemplate: <span class macro="tiddler SaveThisTiddler " ></span>(I've saved the script to a tiddler called: "SaveThisTiddler")
Should I put it directly in the tiddler instead? YS Måns Mårtensson On 16 Mar., 14:01, Eric Shulman <[email protected]> wrote: > > Thanks Eric - but this script only seems to refresh the display of the > > tiddler - not the content - which is why the first script you gave me > > is so good. > > ah... normally "refresh" means 'update the display', not 'save the > content'... > > ... and thus, the confusion about what you are asking for... > > > invokes the UploadTiddlerPlugin and each tiddler tagged gets saved > > inividually. > > What I need is a script to do the same thing with the tiddler it's > > present in..... > > Try this: > > <script label="save this tiddler"> > var here=store.findContainingTiddler(place); if (!here) return; > var t=store.getTiddler(here.getAttribute('tiddler')); if (!t) > return; > store.saveTiddler > (t.title,t.title,t.text,t.modifier,t.modified,t.tags,t.fields); > </script> > > enjoy, > -e --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

