hmmm - too fast with the mouse,,,

http://danskkarakter.tiddlyspot.com/#TestElev%20tabs%20DelA%20PointsKarakter

On 11 Dec., 20:28, Måns <[email protected]> wrote:
> Here's a live example - sorry but it's in Danish..
>
> Regards Måns Mårtensson
>
> On 11 Dec., 20:25, Måns <[email protected]> wrote:
>
>
>
> > Hi Mark - Please forgive  - that I called you Mike...> At this point its 
> > increasingly unclear if you really need wikiCalc, or
> > > just some inline scripting.
>
> > "Inline scripting" is witchcraft to me..
> > I know I use/need it all the time but it's borrowed clothes.
> > Snippets picked up here and there - slightly modified to fit in
> > different contexts.
> > I need somebodys help whenever I want sth that isn't "prepacked" and
> > available as a plugin already..
> > I really like to accomplish things by trial and error - Many of Erics
> > plugins lend themselves to this kind of investigation.
> > When I play around with javascript or try to combine scripts I never
> > succeed.
> > I am most comfortable with variables and the ability to replace bits
> > and pieces without worrying if it's a comma, a linebreak or some other
> > triviality which breaks the code..
>
> > If it's ok with you - it's ok with me..
>
> > > Your grade is <<wikiCalc "try{MANS.gradeMe(%0);}catch(e){'No such> 
> > > student';}" [[Student::John]] >>
>
> > It seems that this code doesn't a student(slice) with John in the
> > tiddler titled Student - it should output: "No such student" if John
> > is missing... However I get an errormessage if the John slice is
> > missing and the same is true if I make the slice and don't define a
> > value. It doesen't seem to solve the problem...
>
> > I choose to do this (I'm using custom fieldvalues instead of slices
> > and I use Erics wikiCalc script - modified for my special case ECTS
> > transcribed into the Danish gradesystem):
> > tiddler title: [[WikiCalcScript]]
> > <script>
> > var g=store.getValue("$1","points");
> > return g<1?'-3' : g<25?'00' : g<37?'2' : g<48?'4' : g<59?'7' :
> > g<66?'10' : g<71?'12' : 'no points';
> > </script>
> > Then I made a template "wrapped in html"
> > <html><table><td align="center" valign="top"><b>Part A :</b><<tiddler
> > RefreshTiddler with: update>> </ td><tr><td><span class='editor'
> > macro='edit points'></span>points<br> grade = <<tiddler WikiCalcScript
> > with: {{tiddler.title}}>></html> 
> > (needshttp://www.tiddlytools.com/#HTMLFormattingPlugin)
>
> > And again in a new tiddler where it is one of several tabs:
> > <<tabs txt$1
> > '$1 Text' '$1 viewer Tab' [[$1]]
> > 'Part A' '$1 DelA Tab' PartA
> > 'Part B' '$1 DelB Tab' PartBbutton
> > 'Part C ' '$1 DelC Tab' PartCbutton
> > 'Total ' '$1 Total Tab' [[Simple form2]]
> > 'All at once ' '$1 All Tab' [[AllHere]]
>
> > And I've embedded it in the ViewTemplate. It is controlled by
> > HideWhenPluginhttp://mptw.tiddlyspot.com/#HideWhenPluginlikethis:
> > (one of the tabs is replacing the "normal viewer")
> > <div macro="hideWhenTaggedAny student">
> > <div class='viewer' macro='view text wikified'></div></div>
> > <div macro="showWhenTagged student"><div class='viewer' macro="tiddler
> > tabs with: {{tiddler.title}}"></div></div>
>
> > To be able to use the 'edit tiddler function' in the viewtiddler I
> > also installed Eric's 
> > EditFieldPluginhttp://www.tiddlytools.com/#EditFieldPlugin.
>
> > Regards Måns Mårtensson

--

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