Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green 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: References: Reply-To: Roedy Green 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 On Sun, 13 Apr 2014 21:33:16 +0800, Richard Maher 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. 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)