> so then could I have a set of cookies that are set globally for anyone
> visiting my TW with:
>    if (true) {
> and then have a second set of cookies that are my personal preference
>    if (config.options.txtUserName == "YourNameHere") {
> I've have to split out the values to the 2 groups, of course...

Exactly.

Note that, for the first group of statements (apply to all), you can
omit the "if (true) {" (and the matching "}").  Also, you can have
different settings for the same value, applied conditionally for
certain users, like this:

// apply to ALL
config.options.chkAnimate=true;
...

// apply to "SomeName"
if (config.options.txtUserName="SomeName") {
   config.options.chkAnimate=false;
   ...
}

As the CookieJar is processed, the "apply to all" statements are
applied first... then, any matching user-specific statements are
applied.  The last value assigned to an option variable is the one
that is used.

enjoy,
-e

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