[Seaside] html5 canvas doesn't show processing.js sketch

nvr slx nvrslx at hotmail.com
Wed Jan 18 15:08:39 UTC 2012


Hi Rob,
 
only 2 lines are needed:
 
<script type="text/javascript" src="http://processingjs.org/js/processing.min.js"></script>
<canvas data-processing-sources="http://processingjs.org/sketches/basic-example.pde"></canvas>
 
>Using Processing
>There are two ways of implementing processing. The first way is the recommended one. Let me illustrate both of these:
>First Method
>Needed files: processing.js anything.html anything.pde 
>The anything.html file will look like:
<script src="processing.js"></script> 
<canvas data-processing-sources="anything.pde"></canvas>


 
 
Thanks for your comments,
 
Jim
 



From: watchlala at hotmail.com
To: seaside at lists.squeakfoundation.org
Subject: RE: [Seaside] html5 canvas doesn't show processing.js sketch
Date: Wed, 18 Jan 2012 07:19:44 -0700





It looks fine... I assume your <script> that loads processing.js is in the head in your static html file on disc as well? It probably has to do with something processing.js is expecting to see that it isn't.


Maybe take a look at how they suggest to embed their code and try to see what Seaside is doing that doesn't agree with that as Nick described.


RS





From: nvrslx at hotmail.com
To: seaside at lists.squeakfoundation.org
Subject: RE: [Seaside] html5 canvas doesn't show processing.js sketch
Date: Wed, 18 Jan 2012 13:26:56 +0100





 
hi Nick and RS,
 
 
That's my problem:
 

the static file works (index.html, see below) and is exact the same html code as the Seaside generation (index.html is the source code of the Seaside generation).
 
I'm using Safari. index.html loads, Seaside generation doesnt.
 
Strange. 
 




From: watchlala at hotmail.com
To: seaside at lists.squeakfoundation.org
Subject: RE: [Seaside] html5 canvas doesn't show processing.js sketch
Date: Tue, 17 Jan 2012 16:35:31 -0700




And also make sure there's no errors in the javascript and you're using a browser that supports canvas.

RS



Date: Tue, 17 Jan 2012 22:45:37 +0000
Subject: Re: [Seaside] html5 canvas doesn't show processing.js sketch
From: nick.ager at gmail.com
To: seaside at lists.squeakfoundation.org

Hi Jim, 


hi i'm new to Seaside, and have a little problem:


Welcome.


I can't see anything obviously wrong in what you've done. I guess in your position, I'd try to get it working in a static file, then work out the difference between the static version and the Seaside generation.


Sorry I can't be of more help


Nick


_______________________________________________ seaside mailing list seaside at lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside 
_______________________________________________ seaside mailing list seaside at lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside at lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside at lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120118/aaabca19/attachment.htm


More information about the seaside mailing list