Re: Communication between applets in seperate browswer windows?

From: Richard Smol (jazzcat_nospam__at_dds.nl)
Date: 12/16/04


Date: Thu, 16 Dec 2004 15:09:35 GMT

Anton Spaans wrote:
> "Richard Smol" <jazzcat@dds.nl> wrote in message
> news:1103208754.732950.238390@z14g2000cwz.googlegroups.com...
>
>>Hi there,
>>
>>I have this web-application where is one main applet, that opens
>>several browser windows and then has to be notified whenever something
>>changes in those windows (like, when they close down or reload after
>>submitting a value).
>>
>>Now, I was thinking for using an invisible applets that sends
>>lifetime-changes to the main applet... but very much to my dismay
>>inter-applet communication doesn't work between seperate browser
>>windows.. at least not under Internet Explorer 6.
>>
>>Does anyone have any idea how something like this could be implemented?
>>My personal choice would be to let the applets communicate through
>>sockets on a server, but that solution is not feasible here because of
>>various reasons.
>>
>>Thanks in advance!
>>
>>RS
>>
>
>
> I don't know whether this is a java topic, but here it is anyway :)
>
> This is what i would try in Javascript - if Java code in applets don't allow
> you to get the 'Browser'-object (i don't know if it would work, though):
>
> Say one applet is in a browser window, that can be referenced in javascript
> by the variable 'window'.
> Then, open from this window a second window "var otherWin =
> window.open(...)". Now, through the variables 'window' and 'otherWin' and
> 'otherWin.opener' (all 'window' objects in javascript), you can reach either
> applet. Use (event-)listeners, implemented in javascript to communicate from
> applet to applet.

Thanks. I have tried this, but it doesn't work since I can't call
functions on Java applets from JavaScript in IE. Also, the windows
are being opened from inside the Java applet, not through JavaScript.

RS



Relevant Pages

  • Re: Silence befell Win2k Pro ...
    ... Windows", I get the file name displayed, and the test playing works. ... I had the file in a different directory, and the Sound applet showed ... Windows does know perfectly well how to play the file and just ...
    (microsoft.public.win2000.general)
  • Re: Sun - Too visionary?
    ... video screen (possibly opening new windows, ... applet) and turning down the stereo volume. ... Contrast that to the ActiveX model. ... sysadmin level and having the sysadmin COM+ being duped into doing ...
    (comp.lang.java.advocacy)
  • JTexPane: Cross-platform chaos
    ... I've extended a JTextPane to preserve tabindex and implement block- ... Linux but fails on Windows. ... I've spent a lot of time learning Java so that I could build this applet, ...
    (comp.lang.java.gui)
  • Re: Internet explorer 6 service pack 1 problem
    ... Red X image displayed where the applet should be, ... Free Software - Java Software for the desktop ... Windows XP - Shell/User ... | Sometimes when I am browsing websites there seems to be a problem when downloading the images in internet ...
    (microsoft.public.windowsxp.general)
  • Automating IE: focus problem w/ multiple Windows
    ... subsequent calls should open new IE windows, but all running in the same ... In certain cases my applet must show a message dialog ... Now, if i use the taskbar to bring IE to front, the Applet hangs and IE must ... Browser* pOLE = new Browser; ...
    (microsoft.public.win32.programmer.ole)