Hi UnclePhil,

story.switchTheme(config.options.txtCouchLogoutTheme);
doesn't seem to have a return value, so it is undefined

I have an idea, for some testing.

there must be something in "(...)" which causes the problem.

I am not 100% sure, but config.options.txtCouchLogoutTheme is TW
internally handled as a cookie. And it may be modified by the core, if
you progammatically do some browser refresh.

You could try to use
config.options.t_e_xtCouchLogoutTheme
just for testing, and have a look if it works.

just a guess.
-m

On Jun 16, 6:30 pm, UnclePhil <[email protected]> wrote:
> Hi everybody,
>
> I'm searching a solution for the following problem
> if somewhere in a plugin i use
>
> story.switchTheme("PortalTheme");
>
> The TW display is changing correctly
>
> if , for configuration purpose, i use
>
> config.options.txtCouchLogoutTheme="PortalTheme";
> (...)
> story.switchTheme(config.options.txtCouchLogoutTheme);
>
> This is not working
> If i check the variable with Chrome javascript console
> config.options.txtCouchLogoutTheme is correctly set, but the
> evaluation of  story.switchTheme(config.options.txtCouchLogoutTheme)
> return "undefined"
>
> Many thanks' in advance for your help
> Ph Koenig - UnclePhil -

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