-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applets sharing data between different frames do not work #132
Comments
Hi @dborc610, thanks for the report. How are the applets communicating with each other? |
The applet was originally developed in Java 1.3. Both applets use frameset and frames and each applet would run in those frames. I thought it wasn't working cause frames are obsolete so I converted to iframes, but it still works in IE and not chrome with cheerpj. The two applets are the three vector simulation and then the page browser applet which needs to communicate with three vector simulation applet so it knows when to change states. applet.html
page_browser.html
These commands are set in parameters of the page browser applet. Here are the jars three-vector-applets.zip for this applet. This applet is one of many so it's just the "addition of three vectors" |
We have investigated the problem. To the best of our understanding the issue is that the 2 applets assume to be executed by the same Java virtual machine, since they expect to be able to share static variables. This cannot work in CheerpJ currently, because the 2 applets are in different HTML frames, which correspond to completely independent execution contexts in the browser. Since HTML frames are a legacy technology, and there is no commercial demand for this specific feature, we cannot commit resources to fix the problem right now. Your best option forward seems to be restructuring the site to have both applet in the same HTML page. |
I’m running into a problem compiling two separate applets on the same page that need to send commands between the two. I have tested them in internet explorer and it works as expected. When I attempt to run the same pair of applets in google chrome with the cheerpj extension it doesn’t work the same.
Here is the page that I’m trying to get running. It’s working fine in IE but not Chrome for some reason
Are there limitations to using the extension that might cause my applet to not work?
The text was updated successfully, but these errors were encountered: