I need help why my Java applet website is not running, which involved multiple pages.

No description
10 Replies
apignotti
apignotti8mo ago
Can you clarify what the problem is? Are you integrating CheerpJ is in the page or using the CheerpJ Applet Runner extension?
vannex21
vannex21OP8mo ago
yes, i am integrating Cheepj in the page and also i also try to use the cheerpJ applet runner extension.
apignotti
apignotti8mo ago
Integrating in the page can certainly be made to work. Can you clarify what you mean by multiple pages and what the problem is in detail?
vannex21
vannex21OP8mo ago
the applets does not load when it involves inputting a user input into the applet, then save that user input into the next page of the applet this is one of the example of the Java applets. https://modularphysics.mtroyal.ca/map/Content/vector/addition/simulate/threevec/
apignotti
apignotti8mo ago
Is the example already integrated with CheerpJ? If not can you prepare one that is already integrated?
vannex21
vannex21OP8mo ago
yes, this one already integrated with Cheerpj. i put <script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script> in the code
apignotti
apignotti8mo ago
Did you also call cheerpjInit?
vannex21
vannex21OP8mo ago
i am not sure, if i did, but some of the applets are working. for example: https://modularphysics.mtroyal.ca/map/Content/accel/duegravity/simulate/oneball/applet.html
apignotti
apignotti8mo ago
So, I currently suspect that the page depends on having both applets running in the same address space, with Java globals being shared between the two This is something that is not possible as things are right now since the two applets live in difference iframes, which are completely independent I believe that you can make it work if you restructure this to have both applets in the same page Please understand that iframes are isolated at the browser level, this is not something that CheerpJ can change I've seen you are using CheerpJ 2.2 in the page, we strongly recommend using CheerpJ 3.0 instead
vannex21
vannex21OP8mo ago
thanks for the helpful explanation.. i will do that.
Want results from more Discord servers?
Add your server