Re: Communication between applets in seperate browswer windows?
From: Richard Smol (jazzcat_nospam__at_dds.nl)
Date: 12/16/04
- Next message: Chris Smith: "Re: Setting Java Virtual Memory"
- Previous message: Collin VanDyck: "Re: Debugging ANT build scripts"
- In reply to: Anton Spaans: "Re: Communication between applets in seperate browswer windows?"
- Next in thread: Andrew Thompson: "Re: Communication between applets in seperate browswer windows?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Chris Smith: "Re: Setting Java Virtual Memory"
- Previous message: Collin VanDyck: "Re: Debugging ANT build scripts"
- In reply to: Anton Spaans: "Re: Communication between applets in seperate browswer windows?"
- Next in thread: Andrew Thompson: "Re: Communication between applets in seperate browswer windows?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|