Thanks Eric,

It works. Thank you.
One slight problem. The display scrolls down to a place where a new
tiddler would be placed.
I've got round this by using the single page plugin set to 'always open on top'


Alex

> <script label="next">
>        var score=...; /* calc score from checkboxes */
>        var here=story.findContainingTiddler(place);
>        story.displayTiddler(here, score<3 ? 'Q2' : 'Q5');
>        story.closeTiddler(here.getAttribute("tiddler")); /* close self */
>        return false;
> </script>



2009/3/18 Eric Shulman <[email protected]>:
>
>> I have tiddlers [1] with formTemplates in them. There are checkboxes
>> and depending on the value of these, i would like to determine the
>> navigation route the reader takes though the TW.
>> Depending on the score in the check boxes, the nextTiddler would be
>> different. I would then put a script with a button at the bottom of
>> each question Tiddler
>
> Something like this should do it...
>
> <script label="next">
>        var score=...; /* calc score from checkboxes */
>        var here=story.findContainingTiddler(place);
>        story.displayTiddler(here, score<3 ? 'Q2' : 'Q5');
>        story.closeTiddler(here.getAttribute("tiddler")); /* close self */
>        return false;
> </script>
>
> enjoy,
> -e
> >
>



-- 
t: 0161 442 2202
m: 0781 372 50 17
skype: alexhough
delicious: alexhough

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