This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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
It's not a secret anymore!