1 / 21

LiveConnect

LiveConnect. Kevin Andrusky Stephen Bodnar Darshan Gill. Overview. Introduction JavaScript to Java Java to JavaScript Controlling Plug-ins Plug-ins to Java Plug-ins to JavaScript. Introduction. Developed by Netscape to permit Communication between: Java JavaScript, and Plug-ins

Download Presentation

LiveConnect

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LiveConnect Kevin Andrusky Stephen Bodnar Darshan Gill

  2. Overview • Introduction • JavaScript to Java • Java to JavaScript • Controlling Plug-ins • Plug-ins to Java • Plug-ins to JavaScript

  3. Introduction • Developed by Netscape to permit Communication between: • Java • JavaScript, and • Plug-ins • Implemented in Netscape 3.0 • Later implemented by Microsoft for Internet Explorer 4.0

  4. JavaScript to Java

  5. Controlling Applets

  6. Calling Java Methods

  7. Type Conversions

  8. Type Conversions

  9. Java to JavaScript

  10. Preparation

  11. JSObject API (part)

  12. Example

  13. Type Conversions

  14. Controlling Plug-ins

  15. Prerequisites

  16. Controlling Plug-ins

  17. Plug-ins to Java • Complicated • Involves combining C and Java • See: http://www.netscape.com/eng/mozilla/3.0/handbook/plugins/pjava.htm

  18. Plug-ins to JavaScript • If Plug-in is a subclass of netscape.plugin.Plugin • Same as Java to JavaScript methods

  19. Conclusions • Powerful technology, though not widely used. • Rather antiquated, Netscape 6 doesn’t have full support for LiveConnect anymore • Newer technologies? • Flash?

  20. LiveConnect Examples • Java To JavaScript: • http://www.apl.jhu.edu/~hall/java/JavaScript-from-Java.html • JavaScript To Java: • http://www.netscape.com/eng/mozilla/3.0/handbook/javascript/livecon.htm • http://www.apl.jhu.edu/~hall/java/Java-from-JavaScript.html • http://www.webreference.com/javascript/961202/part01.html

  21. LiveConnect Info References We Used • http://www.netscape.com/eng/mozilla/3.0/handbook/javascript/livecon.htm • http://www.netscape.com/eng/mozilla/3.0/handbook/plugins/ • http://developer.netscape.com/docs/manuals/communicator/jsref/pkg.htm • http://www.js-examples.com/javascript/core_js15/lc.php3 • http://developer.netscape.com/docs/manuals/signedobj/trust/owp.htm • http://java.sun.com/j2se/1.3/docs/guide/plugin/security.html

More Related