I know that processing.js is a translation of Processing code to Javascript. Unfortunately, I have specific Ajax calls that have to be made within my program, so I can't brute-translate in this way (and there are no Ajax libraries for Processing that work). Is it possible to edit my code to change it to Javascript, and then import a Processing library so that functions like draw() can be used?
I wrote a .js script that works when I host locally; when I upload to a server, I can access the page, but get a blank Processing page (e.g., it shows the window in which Processing runs the scripts, and at the bottom it shows me that it's running code from, e.g., urns (the script I wrote)). I downloaded example code from the Processing website and when I upload that, I get the same result. In both cases, I'm taking the files from the web-export folder and putting them up on my website. I tried chmod -R 755 on the folder, in case it was that the scripts lacked permissions, but that didn't do anything. Any other ideas?