Hi Justin,

Yes, "savePrefs" is called - currently, I am trying to use the JSON-RPC
(i guess) method by calling:

> var req = opensocial.newDataRequest();
> var user_prefs_json = gadgets.json.stringify(gadget.userPrefs);
> req.add(req.newUpdatePersonAppDataRequest(opensocial.IdSpec.PersonId.VIEWER, 
>              "UserPrefs", user_prefs_json), "savePrefs");
> req.send(shindig.DefaultUserPrefStore.prototype.savePrefsResponseHandler);

Which works fine (hurray) if I put this inside my gadget (with "<Require
feature="opensocial-0.8"/>") but sadly does not work (bummer!) inside my
shindig-container.js file. This always gives me "opensocial undefined",
no matter what I try to add to my
"/gadgets/js/shindig-container:setprefs:core:opensocial-0.8:gadgets:rpc.js?c=1&debug=1"
call in the encapsulating html File (as you suggested).

Do I have to tamper with the "feature.xml" files in the java script
subfolder?

-Peter

Reply via email to