1
edit
Changes
m
→Javascript callback function with C++ embedding
}
</pre>
===Javascript callback How to map a javascript function with to a C++ embeddingfunction===
Define an XPCOM class defining the function you'll be doing in javascript. Then pass the object to your XPCOM coded object and call it from C++. You can find this answered repeated and with an example [http://groups.google.com/group/mozilla.dev.embedding/browse_thread/thread/af33a04e00387f5d/34d897200d736061#34d897200d736061 here]