Hi Again

Thanks PMario for the help....it almost gets to what I want. 

With SelectThemePlugin......setting config.options,txtTheme at opening the 
TW (xxConfig) sets the default theme. With the Plugin I can use 
<<applyTheme otherTheme>> to create a button which will switch to the 
definition contained in "otherTheme".

But I want is that these theme changes happen as a result of javascript 
commands, not user selecting a button. For example a user clicks a link 
that opens a wide iframe to read a document...so the javascript under that 
click needs to activate the "wideIframe" theme, and them open the selected 
document. Later the user may select a research topic, so the javascript 
opens the "researchTheme" (which has a main topic and a side list of 
references) and then opens the selected topic....etc.

I have tried a few vaiations on
<script>config.options.txtTheme="researchTheme";story.refreshAll();</script>....
 
ou.refreshDisplay()......but cant trigger the theme switch.

Any ideas on how to trigger theme changes from inside javascript?

Thanks in Advance
Skye


Em quinta-feira, 6 de março de 2014 20h54min15s UTC-3, skye riquelme 
escreveu:
>
>  Hi Again....been quietly lurking here for some time. Still playing with  
> the old TW
>
> And cant figure out how to quickly swap stylesheets.
>
> For example, PageTemplate creates an element (say smallMenu), that 
> StyleSheet defines (color, position, size, borders....).....now I want to 
> be able make it visible or hidden. Soa link might hit a tiddler that 
> defines "#smallMenu{visibility:visible;}" so that the contents of the 
> associated tiddler (SmallMenu) becomes visible. Another link triggers a 
> tiddler which includes "#smallMenu {visibility:hidden;}"...and the 
> smallMenu div disappears...
>
> Cant get it to work though!!!! How to do this?
>
> Thanks
> Skye
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to