469,588 Members | 2,829 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

javascript->applet communication

Hi everybody,

I would like to know if the way of communicating with an applet from
Javascript is standard (valid for all web browsers). I know that
JSObject (Applet->javascript) is not compatible with some browsers,
but I have not found any document indicating that the javascript-
>applet could fail with some browsers.
Also, I would like to know if there is any way to detect if a certain
applet is running on a different JVM and obtain a reference to it
(using Javascript).

Thanks,
Sergio.

Feb 10 '07 #1
1 1981
Hi,

41****@cepsz.unizar.es wrote:
Hi everybody,

I would like to know if the way of communicating with an applet from
Javascript is standard (valid for all web browsers).
"all" is very large. Does it include Blazer on PalmOS, for example? :-)
Probably not.

In the past when I was still playing with LiveConnect, my findings were
that it worked fine on IE and Mozilla-based browsers on Windows. In
Opera it used to fail (but who knows, maybe it works now). On Mac-based
browsers, the results were disappointing, but I don't really remember if
it worked at all.

I recommend that you navigate to a LiveConnect enabled page and test on
your target browsers. For example:
http://www.galasoft-lb.ch/myjavascri...LiveConnect102
and
http://www.galasoft-lb.ch/myjavascri...LiveConnect130

I know that
JSObject (Applet->javascript) is not compatible with some browsers,
but I have not found any document indicating that the javascript-
>applet could fail with some browsers.

Also, I would like to know if there is any way to detect if a certain
applet is running on a different JVM and obtain a reference to it
(using Javascript).
You mean, from inside a running applet, getting a reference to another
applet running in a different JVM?

I never tried, but I see at least one reason why this will not work.
Getting a reference to another applet in the *same* JVM works because
the both applets run in the same process. However, another JVM will be
another process (you can see that by observing the process list in
Windows' task manager for example), and any interprocess communication
requests marshalling. It would be interesting to try it, but I am pretty
sure it'll fail.

For two applets in the same JVM, try this:
http://www.galasoft-lb.ch/_archive/m...mTest/backup00
Thanks,
Sergio.
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Pjotr Wedersteers | last post: by
2 posts views Thread by George Hester | last post: by
3 posts views Thread by Roberto Gallo | last post: by
1 post views Thread by mary | last post: by
1 post views Thread by Nawed | last post: by
24 posts views Thread by firstcustomer | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.