473,385 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 2107
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pjotr Wedersteers | last post by:
I have a small Javascript applet that users can start from within a html page. I'd like to adapt the script in a way it invokes a php counter script that keeps track of the number of times the...
1
by: whimsica | last post by:
I'm investingating a c++ api, Panda3d.com, that has a python binding. I want to convert this api into an ACtiveX control so it will run on the web. When I do so I want to use Microsoft Script...
2
by: George Hester | last post by:
I have an applet which is a cube each face if which is a link. I have a floating <DIV> element which when the mouse is over the applet it pops up showing the text of all the links in the applet....
3
by: Roberto Gallo | last post by:
Hi again. Thank you for previews answers. I have another question.... How can I inform a Javascipt, that must submit my Applet's data, that this same Applet has produced the data in question?...
1
by: mary | last post by:
I need to be able to get the HTTP-REFERER of an HTML page. Is it possible to do it with a JavaScript applet included in the page itself? Thanks! mary
1
by: Nawed | last post by:
We are experiencing a browser freeze when implementing a large number of javascript calls. It seems that there is a random 'hiccup' which loses some data. This causes a disparity between client-...
9
by: Mickey Segal | last post by:
The long-simmering Eolas patent dispute: http://www.microsoft.com/presspass/press/2003/oct03/10-06EOLASPR.mspx has led to an optional Microsoft Update: http://support.microsoft.com/kb/912945/en-us...
24
by: firstcustomer | last post by:
Hi, Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that someone will be able to point me to a ready-made solution to my problem! A friend of mine (honest!) is wanting to...
4
by: reply2mahendran | last post by:
Hi guys, I have an Applet which is embedded in a html file as follows. <Applet id="AdImageApplet" name="AdImageApplet" Code="AdImageApplet.class" width="150" MAYSCRIPT height="150"> ...
2
by: ManidipSengupta | last post by:
Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.