Hi, I want to support asynchronous callbacks from my javascript code. The
example below will clarify my point:

//c is an instance of my component implemented in c++
//using xpcom
c = Components.classes["my comp id"].createInstance(...);
//doSmthg takes an input variable and a callback
c.doSmthg( my_variable, my_on_completion_callback )
...
function my_on_completion_callback( ... )
{
    //handle completion
}

I asked some of the developers on the irc how to do this and they pointed
out that I need to use nsIProxyManager. But unfortuantly i didn't find much
links clarifying this subject, so I would be gratefull if anyone could
elaborate an example of a simple implemetation.
Thx in advance







_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to