We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I'm trying to implement the very first example of processing.js embedding a pde file and can't get it working (the 'Using processing' example in this page: http://processingjs.org/learning/). The pde file, html and processing.js files are all saved in the same directory. Anyone has any idea why? (i'm using processing 2.1 and processing.js 1.4.1)
Answers
Easiest way is use JavaScript Mode to generate the ".html" for us. 8-X
It also automatically creates a local HTTP server and opens a browser to run it.
Take notice that w/o a server, mostly only Firefox and its derivatives allow JS scripts and other plugins to run! :-&
sorry for the stupid question..., but, should I turn processing into JavaScript Mode and then save the file? i also tried with fireFox, and it didn't work...
W/o having your actual code, we can't test it either! :-&
it's the most basic one:
thanks
I also try to get this code running with processing.js (as an embedded code in the html script. I've simplified it a lot, and still, it's not running... any idea why?
the entire code is:
thanks!
It works when I pasted it @ OpenProcessing.org:
http://www.openprocessing.org/sketch/create
So.., any idea why i can't get it working not in openProcessing?...
How did you try? Some browsers refuse to run JavaScript in HTML when loading from the filesystem (file:// scheme). You need to upload the file to a server, or to change settings in your browser.
Thanks PhiLho. I also tried to embed the code into the html, and couldn't get it working... Any idea why?
Many thanks!
Again, how do you try to open this HTML file?
with googleChrome / fireFox browser, loading it from a file system. The example code is working for me that way, so I assume the problem is with the specific code.