> The script you provided pulls up the current month when the tiddler
> (that contains the tab macro) is open. When I change tabs, a cookie
> is created such that the cookie makes another tab come into view. It
> seems that this browser stored cookie takes precedence and therefore
> it makes the script generated cookie useless.
That script, when used in a systemConfig tiddler, merely sets an
*initial* cookie value. When you select a different tab, the cookie is
changed - and only reset on the next startup (when the plugin kicks in).
In order to have that value reset whenever the respective tiddler is
being rendered, you could make use of evaluated parameters:
---------------
<<tabs
{{
config.options.txtCalendar =
config.messages.dates.months[new Date().getMonth()];
"txtCalendar"
}}
"January" "" [[January]]
"February" "" [[February]]
"March" "" [[March]]
>>
---------------
It's a bit hacky, but it works.
-- F.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---