I'm a newbie.  Checked the FAQ but not sure if I got the right answer.

I am developing a desktop gadget that needs to be able to process
asynchronous events from a program running on the same machine as the
gadget.  I could write a DLL that is embedded in the gadget that can
can communicate with the local program, i.e. Gadget<->Javascript<-
>DLL<->Program, but it doesn't look like it is possible for
asynchronous events to be bubbled from the Program into Javascript
without polling.  Is that true?  Is there anyway for the DLL to invoke
an arbitrary Javascript function in the gadget? My worry is that if
the Javascript had to resort to polling the DLL, the CPU might be
impacted.  The gadget needs to process an event within about 250ms
from when the event actually occurs.

My next guess would be to use XMLHttpRequest and to put some kind of
HTTP handler within the program.  Are there any security concerns
here?  Can the XMLHttpRequest in a desktop gadget send the request to
the local machine?  What if the gadget were running in the browser?

Any other ideas for bubbling an arbitrary event from a program/DLL
into a gadget on the same computer?

Thanks for the help.

Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" 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-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to