We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I've made a sketch that runs off csv files. It works great on java mode in processing but when I export it to javascript mode the page shows the screen, but is blank. How can I get the sketch to read the csv files in javascript mode? thanks
Answers
Are we supposed to guess w/o seeing your code or some other example? 8-}
Regardless, just know that Pjs' API is still pretty much stuck @ Processing 1.5.1:
http://ProcessingJS.org/reference/
Therefore P2 functions like loadTable() is unavailable there. Go w/ loadStrings() + split() instead. :-\"
Sorry about that. I thought it might be a general issue (as in it doesn't do tables, or they have to be on a server, etc) hence I didn't put my code. But here is:
I thought I was clear that Pjs got no support for features introduced in P2 like Table? :-@
And you also got a cardinal sin: Loading resources after setup() had finished. :-&
Moreover, processing.sound is a Java library and thus doesn't work in JS.
You're gonna need to look up for some JS library w/ those features. #:-S
My advice is if you wanna deploy for the web and needs to use libraries, go w/ p5js instead: :(|)
Man, forums.... one great place to come and get abused for free. Thanks, and for your help.