Hi Again

Thanks Eric..... so now I have

<script>
var ref="???";
var tids=store.getMatchingTiddlers(ref);
for (var t=0; t<tids.length; t++)
{
var text=tids[t].text;
var firstreplace=text.replace("<<tiddler Format##pdf with:'","|
Link|");
var endref=firstreplace.indexOf(">>");
var fullref=firstreplace.slice(0,endref);
var newtext=fullref+"|\n|Autor||\n|Editora||\n|Fonte|www|\n|Tipo|pdf|\n
\n!!Comentarios\n";
return newtext;
      store.saveTiddler( tids[t].title, tids[t].title, newtext,
tids[t].modifier, tids[t].modified,tids[t].tags, tids[t].fields);
autoSaveChanges();
story.displayTiddler(tids[t].title,null);
}
</script>

..yes...in this case I am searching for tag "???" and only want to
change the text......in my code I output newtext.....and can see that
the string manipulation of the original text is correct....but it is
still not overwriting the new text.....the tiddler still shows the
original text...seems the store.saveTiddler part is not
functioning...thats the part that I cant get right.

You mentioned I could use "text.replace(..)" ... I am not familiar
with that function...how does it work...syntax...

Thanks
Skye

-- 
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