> For not having this script invoked every
> time you open this tiddler, simply place it in a slider, for example
> NestedSliders:
>
> +++
> <script>
>    var titles=store.getTiddlerText("SomeList").readBracketedList();
>    for (var i=0; i<titles.length; i++)
>       store.setTiddlerTag(titles[i],'tagName',true); // true=set,
> false=clear
> </script>
> ===

To prevent the script from being immediately invoked, you have to use
a "lazy" slider (by adding the "..." syntax), like this:

+++[click to run]...
<script>
...
</script>
===

However, this only invokes the script the first time the slider is
opened.  A much better (and simpler) way to defer processing is to use
the label="..." syntax of InlineJavascriptPlugin to create an
'onclick' script:

<script label="click to run">
...
</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
-~----------~----~----~----~------~----~------~--~---

Reply via email to