Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28077

Re: Applet instances

Path csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Applet instances
Date Sun, 13 Apr 2014 17:24:40 -0700
Organization Canadian Mind Products
Lines 26
Message-ID <e9amk9p49nl22f0d5eerq6envpp00ea8te@4ax.com> (permalink)
References <ah4kk9lbgvhjdm2m2o494bt0tg15faofno@4ax.com> <lie3ms$5t3$1@speranza.aioe.org>
Reply-To Roedy Green <see_website@mindprod.com.invalid>
NNTP-Posting-Host K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent ForteAgent/7.20.32.1218
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:28077

Show key headers only | View raw


On Sun, 13 Apr 2014 21:33:16 +0800, Richard Maher
<maher_rjSPAMLESS@hotmail.com> wrote, quoted or indirectly quoted
someone who said :

>I'll check again next w/e 'cos iirc the Applet thread gets a unique 
>index for each instance so I'm guessing there's some intrinsic attribute 
>somewhere.

with the old APPLET tag there was name=. I think it has disappeared in
HTML5 OBJECT. Logically ID= should work, but I don't think there is a
method to read it.

In my case, I generate the OBJECT tags with a macro generator, so it
is no problem to add a sequence number on page parameter to uniquely
identify applets.

<param name="instance" value="12">

I suspect that using static for communication will have the same
problem.  If the browser starts putting your Applets in different
JVMs, they will each get their own static area.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
"Don't worry about people stealing an idea; if it's original, you'll
 have to shove it down their throats." 
~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Applet instances Roedy Green <see_website@mindprod.com.invalid> - 2014-04-12 21:29 -0700
  Re: Applet instances Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2014-04-13 21:33 +0800
    Re: Applet instances Roedy Green <see_website@mindprod.com.invalid> - 2014-04-13 17:24 -0700

csiph-web