Hello All, I want to store the gadgets user prefs on the web server side. Currently, there is a cookie-based storage for demo. I want to replace the save/read to cookie functions in saveprefs/getprefs, for example, use the gadgets.io.makeNonProxiedRequest functions to post the data to a servlet, then save the data to a database. However, I do not know how to handle the callback functions. If there is any network connection error, the getPrefs/savePrefs functions do not know if the call is OK.
Another question, how to restore these user prefs data? during the metadata request, there is no user-defined data, only the default value, Can I modify the rpcservlet process function to add the user-defined value in the gadget json array, then return to the client? Thanks a lot ! Yong
