Re: LiveConnect: XUL JavaScript <-> Java
"cbare" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <1169852147.795356.84730__20913.9919061728$1169852427$gmane$org@h3g2000cwc.googlegroups.com> |
Hi, I'll add a +1 to this question. I asked the same question on the mozilla extension development forum and got no answers. http://forums.mozillazine.org/viewtopic.php?t=506555 I was able to write an extension that uses java based on this code: http://simile.mit.edu/java-firefox-extension/ The code from the simile lab is essentially a convoluted way of getting a classloader that will load java classes from the XPI file of an extension. But, I can only call java from javascript, and not the other way around, making some things a little awkward. Where the java side needs to notify the javascript side of some event, I used polling on js side. Kinda hacky, but it works. I tried the same thing with JSObject and got no luck. No error message or exception either, just nothing happens. Arg! I have used JSObject successfully from an applet in the distant past, for whatever that's worth. Good luck, and please post back if you figure anything out. -Chris