Opa....

I was not aware that the return ends the scrip......now you point it
out it seems so obvious !!!

text.replace...I thought you were refering to a TW function and not
the basic javascript....

guess I should go back to bed and try again tomorrow....when my brain
is fully engaged...

thanks for your patience!!!

Skye

On 2 mar, 13:46, Eric Shulman <elsdes...@gmail.com> wrote:
> > var newtext=fullref+"|\n|Autor||\n|Editora||\n|Fonte|www|\n|Tipo|pdf|\n
> > \n!!Comentarios\n";
> > return newtext;
>
>  ^^^^^^^^^^^ WHY?!?  (this *ends* the script *without saving the
> tiddler*... *none* of the code that follows it will *ever* be invoked)
>
> >       store.saveTiddler( tids[t].title, tids[t].title, newtext,
> > tids[t].modifier, tids[t].modified,tids[t].tags, tids[t].fields);
> > </script>
> > You mentioned I could use "text.replace(..)" ... I am not familiar
> > with that function...how does it work...syntax...
>
> You are *already* using the .replace(...) function, here:
>
> var firstreplace=text.replace("<<tiddler Format##pdf with:'","|
> Link|");
>
> Any decent online Javascript reference will have the full syntax and
> usage.
>
> -e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@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