We are about to switch to a new forum software. Until then we have removed the registration on this forum.
All other libraries are working fine, but only p5.dom.js is not working at all. I tried to define createButton()(and other like createSpan() ,createImg(), createA() and createSlider() for trials) but none of it worked. I tried many possible ways of solving it such as or after personally downloading it and many others.
However, it still doesn't work and I haven't been able to find any related discussions to it yet online.
So Please help me out to fix it
Thank you.
Answers
You need to provide more detail: e.g. have you confirmed it has loaded in the browser? Try opening the console (F12) and checking for any errors. Switch to the sources tab (in Chrome at least) and look to see if it's listed under js - or alternatively check the Network tab to confirm it is being loaded into the page. Then confirm the order in which you load the script files in your html file: you could be loading it too late...
A complete online example relying on "p5.dom.js"'s createElement() & style() functions: O:-)
http://Bl.ocks.org/GoSubRoutine/7a567f0510b338b6d0fc1ef53f24f10e