Hi folks,

I'm developing a gadget that runs both in iGoogle and Gmail using the
same XML file.
Everything was working just like a charm until preferences suddenly
stopped working in Gmail.
I tracked down the problem and find out Gmail's gadgets started to be
supplied with the new
API version, ie I should use gadgets.Prefs() rather than _IG_Prefs().
I rewrote the script in order to check if the new API is available to
be used, otherwise I still use the legacy API - for iGoogle
compatibility. The thing is: preferences are not being kept between
sessions when using the gadget in Gmail container. I can set and
retrieve them during a single session but if I resfresh the page or go
away and get back later, preferences are lost. I do not face the same
problem when using it in iGoogle and so using the legacy API.
Checking the JavaScript console, when Gmail's page first load, I got
the following error message:
"Unknown RPC service: set_pref"

Error is thrown from line 490 of the following file:
http://www.gmodules.com/gadgets/js/setprefs:minimessage.js?v=537b95e442dae1ecd5d04c5fa98a77&container=gm&debug=0

I also checked and the gadget.Prefs object is properly loaded and
functional although it didn't make any communication to gmodule server
as does _IG_Prefs object when saving data.

I would appreciate very much if anybody has any thought on what can be
producing this issue.

Best,
Rafael.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to