processing sketch not loading after ajax call
I have asked an initial question here: Sending html canvas content (a
processing sketch) with Ajax
In the comments i point to a possible answer: load processing.js sketch
with ajax on user click
However the answer is not really working 100% at least for me.
The answer suggests that when calling a processing sketcth via ajax call,
the sketch should be reloaded using Processing.loadSketchFromSources
This effectively reloads the sketch, BUT just for an instant, then the
sketch dissapears.
There many questions regarding this topic but i can't find evident
solutions, here are the ones i found: Load processing.js sketch after
window is fully loaded with innerHTML? reinitialize ajax-loaded
processing.js sketch reinitialize processing.js sketch after ajax request
In addition to all the info posted on my original question, you can visit
the website here http:culturadigital.cc/nuevaweb and then clicking lots of
times on "Portada" in the menu, you will see how the sketch reloads and
then dissapears.
Any ideas why of why this happens? Thanks
No comments:
Post a Comment