several jquery ui theme switcher problems (cookie, different themes for different pages, etc.)
Posted
by powerboy
on Stack Overflow
See other posts from Stack Overflow
or by powerboy
Published on 2010-04-23T23:31:11Z
Indexed on
2010/04/23
23:33 UTC
Read the original article
Hit count: 190
I just try putting the jquery-ui theme switcher on my website. Seems that there are some problems:
- Cookie does not work. When I close the browser and reopen the webpage, the default theme will load instead of the one selected before.
- The selected theme is valid for current page only. If jumping to another page, it will load the default. I want to select once and apply to all pages.
- There is a flash of the default theme before the selected theme get loaded.
Anyone know an easy way deal with these problems? I know I can implement my own cookie solution based on that theme switcher, but I was so surprised that the author did not provide options to do these.
© Stack Overflow or respective owner