Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > About Applets

Reply
Thread Tools

About Applets

 
 
418928@cepsz.unizar.es
Guest
Posts: n/a
 
      02-10-2007
Hi everybody,

The following things are not clear to me. I have searched several
documents and do some experiments myself, but I'd like to check some
things. I'm also worried about the compatibility of the answers
regarding different web browsers.

1) What happens if there are two applets with the same id/name on the
same or on a different web page? Does this allow to re-use the old
applet?

2) When is a new JVM process launched by a browser? For example, if I
connect to a certain URL that has a browser, it is clear that a Java
process will start to process the applet. But what happens if now I
launch another browser window that also declares an applet? Is the JVM
previously launched shared for the new applet? Or a new JVM is
launched? And if I execute a new instance of the browser?

3) Related to the previous question, if the JVM is not shared, is
there any way to detect if a certain applet is running on any JVM and
obtain a reference to it (using Javascript)?

4) What should happen if I connect twice to the same URL with the same
applet declared? Are two instances of the same applet executed or can
I "see" the old applet running?

5) Is the communication way of communicating with an applet from
Javascript standard? 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.

Thanks,
Sergio.

 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      02-10-2007
On Feb 11, 3:38 am, "(E-Mail Removed)" <(E-Mail Removed)>
wrote:
> Hi everybody,
>
> The following things are not clear to me. I have searched several
> documents and do some experiments myself, but I'd like to check some
> things. I'm also worried about the compatibility of the answers
> regarding different web browsers.


You have good cause for worry.

> 1) What happens if there are two applets with the same id/name on the
> same or on a different web page? Does this allow to re-use the old
> applet?


No. Not in any reliable way.
It would be against the HTML recommendations
to have two elements with identical ID's, so
a browser would be free to render such
elements any way it likes, some browser
might put the applet in both ID's.

> 2) When is a new JVM process launched by a browser?


It depends on the browser (as well as OS,
and sometimes version of browser).

If you want something reliable, avoid
browsers altogether.

What benefit are you aiming to supply
to the end user?

Andrew T.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dotnet versus Java-Applets Eitan ASP .Net 40 08-06-2005 10:57 PM
Equivalent of applets or ActiveX controls in .NET? =?Utf-8?B?RXJpYyBEYW4=?= ASP .Net 11 01-20-2005 09:52 PM
Applets (.NET style!) Alan Seunarayan ASP .Net 3 04-20-2004 06:34 AM
Equivalent to JAVA Applets shreesh ASP .Net 1 10-18-2003 07:07 PM
Downloading files with applets Praveen M V Java 1 08-13-2003 08:56 PM



Advertisments