About 327,000 results
Open links in new tab
  1. How to call Java applet's methods and variables from Javascript

    Aug 9, 2019 · Javascript can talk to Java applet in the same HTML page through LiveConnect technology. We can write Javascript code to invoke methods (including arguments) and access objects which are exposed by the applet. Here are the rules: returnValue = AppletID.appletMethod (arg1, arg2, …) returnValue = AppletID.publicVar. AppletID.publicVar = <value>

  2. LiveConnect - The API for communication between Java applet and Javascript

    Aug 9, 2019 · Java applet can communicate with Javascript in a same HTML page through a technology called LiveConnect which is supported by all major web browsers. The following figure depicts the communication between Java applet and …

  3. Invoking Applet Methods From JavaScript Code - Oracle

    JavaScript code on a web page can interact with Java applets embedded on the page. JavaScript code can perform operations such as the following: Invoke methods on Java objects; Get and set fields in Java objects; Get and set Java array elements; The LiveConnect Specification describes details about how JavaScript code communicates with Java code.

  4. java - How to call an applet method from JavaScript - Stack Overflow

    I have created an applet and I am going to access an applet method from my HTML page on a web project. Here my applet looks like: public class MessageApplet extends Applet { private Label m_me...

  5. Invoking JavaScript Code From an Applet (The Java™ Tutorials ... - Oracle

    Java applets can invoke JavaScript functions present in the same web page as the applet. The LiveConnect Specification describes details about how JavaScript code communicates with Java code. The netscape.javascript.JSObject class enables Java applets to retrieve a reference to JavaScript objects and interact with the web page.

  6. The Difference Between a Java Applet & Javascript

    Java applets are more complex, but powerful, stand-alone mini applications for performing more far reaching needs beyond website code and Javascripts. You can determine best which technology to use based upon a site's overall need requirement to be effective.

  7. java - How to call a method declared in an applet from JavaScript ...

    Dec 24, 2012 · JavaScript is allowed to directly call the applet’s public methods or public variables. JavaScript considers the embedded applet as an object. By providing the applet with an ID, JavaScript can access it with:

  8. How to call Javascript function from Java applet - CodeJava.net

    Aug 9, 2019 · Java applet can talk to Javascript through the technology called LiveConnect. In this article, we are going to show you how to write Java code to invoke Javascript function from within Java applet (include passing arguments of various data types and receiving return values).

  9. How to Dynamically Embed a Java Applet Using JavaScript?

    Learn how to dynamically embed Java applets in web pages via JavaScript. Step-by-step guide with code snippets and common mistakes.

  10. Javascript to Java Applet communication - Stack Overflow

    Oct 12, 2011 · I am trying to pass a selected value from HTML drop-down to an Applet method, using setter method in the Applet. But every time the Javascript is invoked it shows "object doesn't support this property or method" as an exception.

  11. Some results have been removed
Refresh