10 Replies
Can you clarify what the problem is? Are you integrating CheerpJ is in the page or using the CheerpJ Applet Runner extension?
yes, i am integrating Cheepj in the page and also i also try to use the cheerpJ applet runner extension.
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?
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/
Is the example already integrated with CheerpJ? If not can you prepare one that is already integrated?
yes, this one already integrated with Cheerpj. i put <script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script> in the code
Did you also call cheerpjInit?
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
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
thanks for the helpful explanation.. i will do that.