[tw5] Re: How to refresh a JavaScript widget based on a parsed tiddler ?

2018-06-06 Thread BurningTreeC
edit: I've edited the code above -- 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

[tw5] Re: How to refresh a JavaScript widget based on a parsed tiddler ?

2018-06-06 Thread Silverfox
It works much better now, thank you so much... I can update my json automatically if a tiddler of the table of content is modified or suppressed, but it still needs a manual refresh in case I add a new tiddler to the toc. Do you have any idea of another instruction that may detect an addition

[tw5] Re: How to refresh a JavaScript widget based on a parsed tiddler ?

2018-06-05 Thread BurningTreeC
> > Thank you... but I cannot make it work so far... > > It appears that the > > if($tw.utils.hop(self.allTiddlers[i],changedTiddlers)) > > generates the following error: > > Uncaught TypeError: Cannot convert object to primitive value > > Apologies, I believe I made a mistake here Does it

[tw5] Re: How to refresh a JavaScript widget based on a parsed tiddler ?

2018-06-05 Thread Silverfox
Thank you... but I cannot make it work so far... It appears that the if($tw.utils.hop(self.allTiddlers[i],changedTiddlers)) generates the following error: Uncaught TypeError: Cannot convert object to primitive value I don't understand how to solve it... -- You received this message

[tw5] Re: How to refresh a JavaScript widget based on a parsed tiddler ?

2018-06-02 Thread BurningTreeC
Hi @Silverfox I believe there's the $tw.utils.hop() method you can use to see if a tiddler is part of changedTiddlers (which should contain a list of all changed tiddlers) I don't know how and where you get your tiddlers but if you do it like: //in your prototype.execute add: this.filterTag =