Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Stan R.
Guest
 
Posts: n/a
#1: Apr 23 '06
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.

Thanks for any help.

--
Stan



Grzegorz Kaczor
Guest
 
Posts: n/a
#2: Apr 24 '06

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


Stan R. wrote:[color=blue]
> 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.
>[/color]

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
Closed Thread