Hi there,
I'm trying to call a function of my embedding app from the javascript in the embedded gecko. This is with the embedding sample from pelle Johansen, and a firefox 3.1 build. I've been successful in calling native code from the javascript but it was using either the npapi, or using the category manager to make an XPcom object available from the dom of the embedded browser. What I don't like with both these two approaches is that the code triggered is in a separate module and I want to use the function to consult/update the state of my embedding app. I now will try to create and register my xpcom object from the embedding app, so that I can pass it the data I want from the factory, but it seems quite a complicated solution .. Is there a simpler way to register a callback to that will call the embedding app from the embedded browser ? Any hint appreciated TIA Philippe Torrelli _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding