Vincente Tellez
Vincente Tellez

Reputation: 9

Processing sketch does not work in Browser

I created a sketch in Processing and I would like to put it on a website using Processing.js. I created an html page to put the sketch in and tested it out, but all I see is white screen. The sketch doesn't work.

I've read through the Processing.js Quick Start and as far as I can tell, I've resolved any problems with my sketch and processing.js. My next thought was that there was something wrong with the way I wrote the HTML page, or maybe my browser, but when I tested it with a simpler sketch, that sketch worked just fine. So there has to be something wrong with the sketch itself, but I can't figure out what it is.

For reference, here is the link to where the sketch is supposed to be and the source code of my sketch.

Site Code

Thanks for any help you can provide.

Edit: Here's the error recieved in the console:uncaught exception: Processing.js: Unable to load pjs sketch files: WarefareBeta1_3/WarefareBeta1_3.pde ==> Invalid XHR status 404

Upvotes: 0

Views: 315

Answers (1)

nils
nils

Reputation: 27194

Use an absolute URL in your data-processing-sources (something like http://krotalov.net/NonJoomla/WarefareBeta1_3/WarefareBeta1_3.pde).

Because the file you mention there now, WarefareBeta1_3/WarefareBeta1_3.pde does not seem to be on the server. Or at least not in that directory.

Upvotes: 0

Related Questions