471,319 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

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


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

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
Apr 23 '06 #1
2 1599
Stan R. wrote:
for (prop in document.applets.myapplet) // do something with prop


if ('function' == typeof document.applets.myapplet[prop])
document.write(document.applets.myapplet[prop]);
JW
Apr 23 '06 #2
Janwillem Borleffs wrote:
Stan R. wrote:
for (prop in document.applets.myapplet) // do something with prop


if ('function' == typeof document.applets.myapplet[prop])
document.write(document.applets.myapplet[prop]);


Thank you, but that doesn't do anything i nthe case of applets. Is there
any way at al lto figure out what methods the java applet is exposing
(that be called from javascript i nthe same page) ?

--
Stan
Apr 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by James Hong | last post: by
2 posts views Thread by Put 030516 in email subj to get thru | last post: by
2 posts views Thread by George Hester | last post: by
2 posts views Thread by Roberto Gallo | last post: by
2 posts views Thread by SPG | last post: by
1 post views Thread by Roberto Gallo | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.