Re: How to get available functions for an applet (that can be accessed in javascript) ?



Stan R. wrote:
Hello, I'm wondering how I can enumerate the functions of an applet
(like document.applets.myapplet) ?

In javascript, I can get the properties using

for (prop in document.applets.myapplet) // do something with prop

But I can't figure out any way to get what functions I can access in
javascript.

Reason being I'm using an applet (its a chat applet), I know of a couple
functions I've seen in an example file that comes with the applet files.
But I'm sure threres got to be more, but the docs don't mention them.


As far as I know, you can call any public method exposed by the applet.
So you can simply add your applet to the classpath and use any Java IDE
to see what you can call.

Best regards,
Grzegorz Kaczor
.



Relevant Pages

  • How to get available functions for an applet (that can be accessed in javascript) ?
    ... In javascript, I can get the properties using ... for (prop in document.applets.myapplet) // do something with prop ... Reason being I'm using an applet, ... functions I've seen in an example file that comes with the applet files. ...
    (comp.lang.java)
  • get available functions for an applet (that can be accessed in javascript) ?
    ... I'm wondering how I can enumerate the functions of an applet ... for (prop in document.applets.myapplet) // do something with prop ... Reason being I'm using an applet, ... functions I've seen in an example file that comes with the applet files. ...
    (comp.lang.javascript)
  • Re: interesting applet security problem
    ... the Javascript from host 1 ... can make the applet do basically anything the applet is allowed to do, ... like ipfw/ipchains/iptables or a small forwarding server). ...
    (comp.lang.java.security)
  • Re: AccessControlException
    ... Ich habe ein Applet zur Anzeige von MJpeg-Bildern. ... function SetURL() ... Konvention gibt es auch in JavaScript bzw. ECMAScript-Implementationen). ... Ich gehe mal davon aus, dass das nicht Dein richtiger Quelltext ist, ...
    (de.comp.lang.javascript)
  • Scatter/Gather in Java or Javascript & html (Dynamic class loading?)
    ... Javascript for the user interface. ... There is an Applet that has established and authorized a Socket ... Application-specific programmers to load their PAYROLL class into the JVM ...
    (comp.lang.java.programmer)