Like in topic - is it possible to connect Java with JavaScript in HTML? I know that connecting with JS in .js files is possible and I did it, but I need to connect with JS in HTML. I need this because I am trying to write Kongregate API for Java.

The tricky thing, I think, is specifying the location of the class with the "init" method correctly. You have to spell out the packages. And of course the jar file has to be spelled correctly as well. This template is very fussy about syntax.

The nice thing about the "bot blocker" example is that it shows a bit of interaction with the start and stop buttons. By giving the app and "id" you can reference methods in it. It was also cracked by Notch and hacked by DzzD in short order.

I only know about communicating between jars, which is possible, or making JavaScript functions that look inside jars. Maybe someone else will have an answer but I don't have enough experience here. The only way I know is via Servlets & JSP which is a whole different technology, and one I am still learning about.

By the way, I am using LWJGL Applet Loader to load my LWJGL applet, so I have another problem - as "code" attribute I must use "org.lwjgl.util.applet.AppletLoader". Is it still possible to use methods from Java somehow?

Like in topic - is it possible to connect Java with JavaScript in HTML? I know that connecting with JS in .js files is possible and I did it, but I need to connect with JS in HTML. I need this because I am trying to write Kongregate API for Java.

I already found a solution. In few days I will create and submit Java API for Kongregate and instructions how to submit Java2d/LWJGL game to Kongregate. Maybe someone will use it to submit his own game to Kongregate.

IIRC the Netscape JSObject is no longer supported in Firefox, but the DOM interface model doesn't work with Plugin-1, which means it doesn't work with Mac's with the Apple Java Plugin. Now that Oracle are providing Java for Macs, it might be worth looking at the DOM Interface again.

IIRC the Netscape JSObject is no longer supported in Firefox, but the DOM interface model doesn't work with Plugin-1, which means it doesn't work with Mac's with the Apple Java Plugin. Now that Oracle are providing Java for Macs, it might be worth looking at the DOM Interface again.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org