The prefs are actually not stored through shindig, but on the containing site through the rpc service, for example:
http://www.partuza.nl/js/container.js see the gadget.rpc.register('set_pref') and setUserPref() function which does a simple ajax call to the container to store it. To communicate the prefs to the gadget again, put them on the iframe url (&up_<key>=<val>) and your done :) Reason behind it is that the user pref (gadget settings such as 'which horoscope to display') UI is also a container affair and communicated in the iframe url; Oh and also don't forget to populate the url with the default values if nothing has been specifically set yet Hope that helps! -- Chris On Sat, Nov 22, 2008 at 4:16 PM, Tom Deckers <[EMAIL PROTECTED]> wrote: > > Hey group, > > I'm new to Shindig and am trying to figure out how to persist user > preferences to the server (rather than use the cookie version). > Anyone who can jumpstart me? I'm assuming this can/should be done > with basic gadget functionality without having to use OpenSocial > DataService? I'm using the Java version of Shindig. > > Thanks for any pointers! > Regards, > Tom. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Implementing OpenSocial Containers" 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/opensocial-container?hl=en -~----------~----~----~----~------~----~------~--~---
