Hi Peter What version of Shindig are you using?
> Date: Wed, 3 Nov 2010 12:51:58 +0100 > From: [email protected] > To: [email protected] > Subject: Re: userPrefs is undefined / getting UserPreferences to work > > Hey Justin, > > Just wanted to let you know that Shindig does offer a "settings-dialog" > (see shindig.BaseIfrGadget.prototype.getTitleBarContent in > shindig-container.js) > > Also, I got the settings-dialog working with my gadget by adding the > following line in shindig-container.js: > > > shindig.Gadget = function(params) { > > this.userPrefs = {}; > > if (params) { > > for (var name in params) > > if (params.hasOwnProperty(name)) { > > this[name] = params[name]; > > this.userPrefs[name] = params[name]; // <--- this one > > } > > } > > if (!this.secureToken) { > > // Assume that the default security token implementation is > > // in use on the server. > > this.secureToken = 'john.doe:john.doe:appid:cont:url:0:default'; > > } > > }; > > I'm not sure if this fixes all issues, but right now I think this pretty > much helps me getting started with the preference-persistence on > server-side. For this I am going to go through the other stuff which you > posted in the last days. > > Cheers, > Peter
