File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Communication from Java to Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Communication from Java to Javascript" Watch "Communication from Java to Javascript" New topic

Communication from Java to Javascript

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 832
I want to be able to communicate between my applet class and a couple of javascript functions I have on the parent html webpage. All I can see is I'll need the netscape jar file and import netscape.javascript into my applet class? Where should I store this jar file? Any help would be appreciated.
Mahesh Panchananam

Joined: Jun 30, 2011
Posts: 18
Hi Rob, Generally there will be thick clients when a swing application is created. It must be independent of web technologies, all the stuff that you to achieve with javascript can be achived with the well defined java components.

There are ways to do some work around for this but make use of the well defined java packges.

Mahesh PS
I agree. Here's the link:
subject: Communication from Java to Javascript
jQuery in Action, 3rd edition