473,785 Members | 2,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2137
Hi,

41****@cepsz.un izar.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
1379
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 applet has been run. Also I'd like the script to parse some numerical and string vars to a PHP script. The script has a reset() function in which I like to embed the necessary lines to invoke/parse to PHP script. How should I roughly go about...
1
1850
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 Control to call api routines from Javascript in the browser. Let's say I write up a game in python with my own functions. Then I embed it in a web page and I want to call my functions from javascript? How can I do it. Script control allows you to...
2
3087
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. What I would like is when the mouse is over one of the faces of the cube the corresponding text in my <DIV> will highlight. So in other words this is sort of like have a link on a page and when the mouse is held over it, some other area of the html...
3
2134
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? Or in other words, is there any way to call a JavaScript junction within the Applet? Is it the best way? What do you suggest? Thank you very much again,
1
12159
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
1758
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- and server-side information. Has anyone encountered this issue when sending information from Flash to a database via javascript calls to a webservice?
9
2395
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 that creates non-JavaScript problems that can be fixed using JavaScript. With the Microsoft update installed, Java applets (as well as other content such as Flash videos) are unable to receive user input until an activating click or key press....
24
6341
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 have on his site, a Javascript Calculator for working out the cost of what they want, for example: 1 widget and 2 widglets = £5.00
4
1429
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"> This Applet contains one public method called returnSelectedRegion() which is returning a String. I wanted to call this method from javascript to get the result which I am doing by this way.
2
3455
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 advance for responding. I have made a stub of the codes for better understanding. Situation: I have a Java servlet (HelloWorldServlet) running on a Tomcat (5.5.26) server on a Linux machine (compiled in JDK1.4.2). It writes Javascript to construct...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.