Hello Mary, If you are developing a gadget of type HTML, your code is rendered and served from a Google owned domain (usually gmodules.com but this seems to be changing with Open Social). Due to cross domain security in browsers, a XMLHttpRequest from a gadget served from gmodules.com can not access a web service on your own server. You are correct that the debug settings in FF to bypass this security are not any useful as you can not expect your users to apply these unsecure settings.
The Google Gadget API provides the _IG_Fetch...() function family to allow doing XMLHttpRequest like requests (HTTP GET only for now). These functions are using fetcher/proxy on the same domain as the gadget is served from, therefore,the XMLHttpRequest goes though just fine, then the Google servers make the proxied request to your server, and finally return the result to your gadget. For a bit more details, check out page 6 of this presentation: http://www.ljmsite.com/google/GTUG/20090408-Berlin_GTUG-Overview_of_Google_Gadgets.pdf I hope this helps. Jerome On Jul 9, 3:36 am, madalla <[email protected]> wrote: > I'm developing a gadget that requires to use XMLHttpRequest object to > open a http connection. It always returns failed to open a > connection. > > I made a research and found out I need to change the Firefox policy to > allow AJAX calls by using > > - Type about:config in Firefox address bar and set something... > > then I'm able to debug and run my gadget. > > I'm wondering how can I deploy my gadget if I need the user to do the > above step. > > Thanks for any advise. > Mary --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
