[tw] Re: javascript help to cancel code for printing

2013-05-17 Thread roma
Works fine !

(Had to check some changes I've done in the StorySaverPlugin as my default 
tag is livre and not story).

Again, many thanks, dear Eric...

PS : I encourage anyone to support the TW developpers... as TW is, above 
all and according to me, a rare (if not unique) software which can be 
turned into a very personal one thanks to them).

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: javascript help to cancel code for printing

2013-05-16 Thread roma
Dear Eric : Many thanks.

Unfortunately, I get the the blocking error message : tids is not 
defined. I don't see what it means...

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: javascript help to cancel code for printing

2013-05-16 Thread Eric Shulman


On May 16, 5:16 am, roma x...@free.fr wrote:
 Dear Eric : Many thanks.

 Unfortunately, I get the the blocking error message : tids is not
 defined. I don't see what it means...

oops! When I pasted in the code, it had var t it's supposed to
be:

   var tids=store.getTiddler(FuniculaireDuLivre).links;

-e

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: javascript help to cancel code for printing

2013-05-15 Thread roma
Many thanks, whatever, for your dedicated answer.

I tried without success your code (I still have the false tiddlers 
generated as , =tiddler 1 and tiddlerIcons).

As I dislike wasting other people's time without looking for solutions by 
myself, I tried, after researches, some other codes, like :

.replace(/(^.*.*[a-z].*.*=.*$)/g, )

I think your code is alright, and the problem is elsewhere...

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: javascript help to cancel code for printing

2013-05-15 Thread roma
Many thanks, whatever, for your dedicated answer.

I tried without success your code (I still have the false tiddlers 
generated as , =tiddler 1 and tiddlerIcons).

As I dislike wasting other people's time without looking for solutions by 
myself, I tried, after researches, some other codes, like :

.replace(/(^.*.*[a-z].*.*=.*$)/g, )

But with same results (false tiddlers generated).

I think your code is alright, and the problem is elsewhere...

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: javascript help to cancel code for printing

2013-05-15 Thread Eric Shulman
On May 14, 11:35 am, roma x...@free.fr wrote:
 As a matter of fact, I get the story list of tiddlers like this :
 [[tiddler 1]]tiddlerIcons =tiddler 1
 [[tiddler 2]]tiddlerIcons =tiddler 2
...
 So that when I am looking for printing, Eric's script :
 script label=impression title=ouvre tous ...
    var tids=store.getTiddlerText(FuniculaireDuLivre,).readBracketedList();
...
 /script
 renders some false tiddlers like :
 chchTiddlers
 =tiddler 1

The problem is that your 'source' tiddler contains text which is not
actual tiddler name references.  The .readBracketedList() function
processes the entire text as a space-seperated list, with brackets or
quotes around tiddler names that contain spaces.

Your first inclination -- to remove unwanted syntax before 'reading'
the bracketed list -- is not a bad approach, but it can quickly get
overly complicated (as you've noticed!) due to the variety of syntax
you might need to exclude.

Fortunately, there's a way to get ONLY the actual tiddler links,
without having to process the full tiddler text content... instead of
this line:
   var
tids=store.getTiddlerText(FuniculaireDuLivre,).readBracketedList();
you can write:
   var t=store.getTiddler(FuniculaireDuLivre).links;

This will result in the same list of tiddlers that the
StorySaverPlugin's openStory gives, except that it doesn't filter
out any tiddlers tagged with excludeStory.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
   http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact





-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.