On Monday, May 26, 2014 6:38:07 PM UTC-7, Antaeus Feldspar wrote:
>
> I'm trying to customize a TW with the FormTiddlerPlugin.  I thought I had 
> one of my major goals accomplished:  being able to call Javascript code 
> attached to HTML buttons defined in the formTemplate.
>
> However, my joy was soon curtailed.  I thought that I could access the 
> details of the tiddler the button appeared on through the variable 
> "tiddler", and thus write along the lines of 
> "onClick='alert(tiddler.title)'".  When I tried it and tested it, however, 
> I soon discovered that "tiddler" might mean the tiddler the button appeared 
> on,  or might mean another open tiddler.  How can I get to THAT tiddler's 
> data, specifically?
>

<input type=button 
onclick="alert(story.findContainingTiddler(this).getAttribute('tiddler'))" 
value="click me" />

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to