Java Liveconnect
Koos Vriezen
koos.vriezen at xs4all.nl
Thu Oct 24 21:58:32 BST 2002
On Thu, 24 Oct 2002, Till Krech wrote:
> On Thursday 24 October 2002 19:40, Koos Vriezen wrote:
> >
> > Till, do you see a way an applet can inter-context communicate?
> In java (java-to-java), an applet-to-applet communication is only possible
> between applets in the same AppletContext, i.e. in the same document. First,
> an applet cannot get a reference to another applet in a different context.
> Second, if the applets stem from different sites, they have different
> classloaders and java security restrictions apply.
Thanks, it was indeed about this construct:
domain1 domain2
applet <-> applet
^ ^
| |
v v
JS JS
Amazing it's even not fooled by
public class jsapplet extends Applet {
public static Vector v = new Vector();
public void init () {
v.add(this);
}
.....
}
When doing JS 'document.applets[0].v.size()' it returns 1 if the domains
are different and 2 if they are the same.
Great,
Koos
More information about the kfm-devel
mailing list