Hi String and Ziv,

Long polling will only work in a gadget of type url. The Javascript
cross domain security will prevent using the HttpXmlRequest, and the
_IG_Fetch...() API has a 10 second time out which will prevent any
efficient long polling.

With a gadget type url, you can pretty much do anything you would do
on a normal webpage (other than using cookies with browsers other than
Firefox). Therefore, the long polling would work there.

Jerome

On Nov 30, 12:13 am, String <[EMAIL PROTECTED]> wrote:
> Hi Ziv,
>
> As Jerome said, there's no support for such a mechanism in the Gadget
> API, but that doesn't mean it isn't possible. Gadgets are mini web
> pages at their core, so any server push technology that works on a web
> page will work on a gadget. In addition to Java and Flash, long
> polling is a viable option as well.
>
> HTH,
>
> String
>
> On Nov 26, 3:40 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hey,
>
> > I would like to know if it is possible to "communicate" in any way or
> > method with a gadget from an outside source, without the gadget
> > needing to request data every 1 sec.
> > Just open connection and retrieve the data upon request, and then do
> > something with it...
> > something like registering to a server with the gadget/google account,
> > and then when something new happens in the server, it will send me a
> > notification that will be displayed in the gadget..
>
> > any ideas?
>
> > -Ziv
--~--~---------~--~----~------------~-------~--~----~
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