Thanks for answer, but it's not enough for me.

The .js sample just calls C++ methods from javaScript. It does have a
definition for some interface, but a problem is that, if I want to call
javaScript methods, I must get a pointer to an interface representing java;
so where to get this pointer?

Is it possible to implement some C++ function, which is called by JS at
start of HTML and gives a pointer of an interface to C++ (something like
"SetJavaScriptInterface(nsSomeJavaInterface *ptr)")? How can I write this in
JS?

Thanks,
Sergej



Reply via email to