nature-of-code / Nature-of-Code-Website-Archive

Repo for web files for nature of code
https://noc-processing-archive.netlify.app/
111 stars 21 forks source link

unable to load .pde files to webpage #22

Closed rohitsam closed 8 years ago

rohitsam commented 8 years ago

followed the instruction as given in processing js webpage

error i was getting: Uncaught Processing.js: Unable to load pjs sketch files: game/Game.pde ==> XMLHttpRequest failure, possibly due to a same-origin policy violation. You can try loading this page in another browser, or load it from http://localhost using a local webserver. See the Processing.js README for a more detailed explanation of this problem and solutions.n @ processing.min.js:18b.onreadystatechange @ processing.min.js:17e @ processing.min.js:18b @ processing.min.js:19k.loadSketchFromSources @ processing.min.js:19p @ processing.min.js:19

rohitsam commented 8 years ago

issue solved. add the script directly instead of adding the .pde file check out the examples https://github.com/downloads/processing-js/processing-js/processing-js-1.4.1-examples.zip