Looks like you try to store and object instance in an cookie which could not work. Try to modify your code to just store the classname of the theme to use. And use this class name together with qx.Theme.getByName to get the theme instance back. This instance then could be used for the setTheme call you wish to make.
Hope this helps. Sebastian Grykar schrieb: > Hi, > > step 1 save theme in cookie > > qx.io.local.CookieApi.set('_theme_', > qx.theme.manager.Meta.getInstance().getTheme(), 2); > > > > step 2 in the same session nor next one the code below doesn't work > > var theme_cookie = qx.io.local.CookieApi.get('_theme_'); > if(theme_cookie) qx.theme.manager.Meta.getInstance().setTheme(theme_cookie); > > > What is wrong there ? > > Thanks for help, > Karol ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel