Multiple applets on one site?
in
Integration and Hardware
•
1 year ago
I'm not sure which forum is appropriate for this question but it is about setting up multiple Processing applets on one website that can toggle by a javaScript function. I've had a few of my Processing projects on my old websites but I directed people to them with links. The links went to different pages which were a slightly stylized version of the HTML files Processing generated for me. My new website is mostly set up however I still have the mentioned links up as a temporary solution.
Website:
http://alexsimes.com/
Click on "Visual Programming" to see what I meant by temporary link solution.
Is it possible to toggle applets like this on one page? I make most of my content appear by using document.getElementById('my id').innerHTML = "my content" which causes problems because I can't just have it write all of the content from the Processing generated files because they include <script> tags. My guess was to have:
<script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script>
appear once and then have everything in the next script tag be information that toggles based on the applet I want open.
1