This is what I want to accomplish.
I have created a thread to listen for input via the audio card. From
that thread, I want to be able to call a javascript function which
will alert the input received (in text form). Since the function
running is in a different thread, I know I need to proxy. But how
exactly do I need to proxy back to run the JavaScript function.
The JavaScript function is defined as follows:
#include "nsISupports.idl"
interface nsIJSObject;
[scriptable, uuid(bef031c8-1453-48a1-9b4f-b75696834e39)]
interface nsISimpleJSO : nsISupports {
void handleUtterance(in string utterance);
};
and in html:
var jsObjectWrapper = {
handleUtterance : function(utterance)
{
alert (utterance);
}
};
embed.jsObject = jsObjectWrapper;
I have it working outside of the thread being created. Is what I am
asking even possible? Please help ASAP!
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom