Loading...
Logo
Processing Forum
I'm trying to store pde files on my Amazon S3 server, and pull them into the canvas tag when I render an HTML template. It doesn't seem to be working. Has anyone tried this?

This is for the ReCode Project ( http://recodeproject.com)

-Matt Epler

Replies(2)

I'm about to try the same thing, curious if there's an update.  Were you trying to dynamically load .pde's, or writing the .pde directly into the HTML?
In my case, users are posting their work to my site app. Originally I was creating files from text input into a form and putting them on Amazon S3, then pulling it back out when I needed it. As it turns out, this was overkill. Instead, I just take the code pasted into the form and store it as a single string into the database object for that project. 

That string is loaded into the canvas and a short JQuery script runs the sketch with that string in the canvas element. I used this site to figure it out:  http://processingjs.org/articles/PomaxGuide.html#onpage


You'll see I'm using a template design. I'm using Flask as the app engine. If it's confusing, just let me know and I can do a quick walkthrough for you.