Hi all,
We'd like to embed mfxembed into a Java component, and want to add the javascript event
registeration/listening support.
The javascript has to call the Java listener like this:
> <form>
> <input type="button" value="version" onclick="document.javacontainer.call( 'versionButtonCalled' )" />
> </form>
On the container side the JavaScript listener gets invoked: > void addJavaScriptListener( JavaScriptListener listener ); >void removeJavaScriptListener( JavaScriptListener listener );
>interface JavaScriptListener : public EventListener
>{ void callback( JavaScriptEvent event )
> ......
> if( args.equals( "versionButtonCalled" ) ) {
> // do what needs to be done.
> }
>};>class JavaScriptEvent : public EventObject
>{ String args; };This might be done by installing a proxy object (javacontainer) to the document properties on the browser side that's accessible from JavaScript. Can this be done someway, using XPConnect or something else?
I would appreciate if someone could point me out how to tackle this issue.
-George. _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
