> <script> > var CountValue = store.getValue(tiddler, "VerseCount"); > </script>
* This actually creates another global variable, window.CountValue, which isn't really necessary since store.getValue() can be called later on, in response to pressing the "<" or ">" buttons (see suggested code changes below). * Custom field names must be *all lower case* (due a known limitation in the core). Thus, you have to use "versecount" or "verse_count" or just "vc", instead of "VerseCount". So, eliminate the global entirely, and then write the 'button' code to look something like this: createTiddlyButton(context.place,"<",null, function(e) { var c=store.getValue(tiddler,"vc")-window.fetItemsPerPage; store.setValue(tiddler.title,"versecount",c); window.fetStartIndex = c; story.refreshTiddler(context.viewerTiddler.title,null,true); }); createTiddlyButton(context.place,">",null, function(e) { var c=store.getValue(tiddler,"vc")+window.fetItemsPerPage; store.setValue(tiddler.title,"versecount",c); window.fetStartIndex = c; story.refreshTiddler(context.viewerTiddler.title,null,true); }); (note: untested code) enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---