Re: javascript to execute java program



On Sep 29, 3:41 pm, Thomas 'PointedEars' Lahn <PointedE...@xxxxxx>
wrote:
Sister Ray wrote:
Javascripts runs in the browser you won't be able to do that. You
can't call programs in the server on in the client computer from
javascript.

Utter nonsense.

1. Neither programming language, including ECMAScript implementations
   like JavaScript, is restricted to the client or the server.

2. If the Java program is an applet, LiveConnect/XPConnect can be used
   to access it from JavaScript.

3. If the Java program is a servlet, a HTTP request can trigger it.
   HTTP requests can be initiated with JavaScript using an
   external API (e.g., DOM or XHR).

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
  -- Richard Cornford, cljs, <f806at$ail$1$8300d...@xxxxxxxxxxxxxxxx>

would you please give me some example how to execute the myjava.class
via javascript.
I have tried so many differnt, it doesn't seem working.
Thanks so much.
.


Quantcast